From cd0b21c2ded2ca61b644a0d5aee850c3ddd08f99 Mon Sep 17 00:00:00 2001 From: vjrj <vjrj@comunes.org> Date: Wed, 29 Mar 2023 23:17:59 +0200 Subject: [PATCH] New release. Assets env.prod fix --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f24f7645..3c7e8cde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ apt-get clean ARG GINKGO_WEB_VERSION=0.0.12 -ARG GINKGO_WEB_VERSION_PATH=176d988bc6e5c3756973cef2038c7d6c +ARG GINKGO_WEB_VERSION_PATH=666387ed25544cad529b8737d35a71a1 RUN curl -L https://git.duniter.org/vjrj/ginkgo/uploads/${GINKGO_WEB_VERSION_PATH}/ginkgo-web-${GINKGO_WEB_VERSION}.tgz | tar xfz - -C /usr/share/nginx/html/ --strip-components=2 @@ -22,6 +22,10 @@ COPY proxy-gva.conf /etc/nginx/snippets/proxy-gva.conf # Configuration of g1nkgo COPY assets/env.production.txt /usr/share/nginx/html/assets/env.production.txt +# In fact this is where flutter looks for it (it seems like a bug) +RUN mkdir -p /usr/share/nginx/html/assets/assets/ +COPY assets/env.production.txt /usr/share/nginx/html/assets/assets/env.production.txt + COPY assets/img/ /usr/share/nginx/html/assets/img/ # Copy the default nginx configuration and g1nkgo conf to restore in empty volumes -- GitLab