From 905361ddb0b6e5ac967580d989104f615f2d569f Mon Sep 17 00:00:00 2001 From: Dawid Rusnak Date: Wed, 11 Oct 2023 16:23:46 +0200 Subject: [PATCH] fix: allow using volume for nginx configuration (#904) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9d88769b8..be69860e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,8 @@ COPY ./packages/web/scripts/inject-base-href.sh /app/init/ RUN chmod +x /app/init/env.sh /app/init/inject-base-href.sh && \ chmod ugo+w /etc/nginx/nginx.conf /app/build/index.html && \ - touch /app/build/env-config.js && chmod a+w /app/build/env-config.js + touch /app/build/env-config.js && chmod a+w /app/build/env-config.js && \ + mkdir /app/nginx && cp -R /etc/nginx/. /app/nginx WORKDIR /usr/share/nginx/html @@ -42,6 +43,7 @@ CMD [ \ "/bin/sh", \ "-c", \ "cp -R /app/build/. /usr/share/nginx/html && \ + cp -R /app/nginx/. /etc/nginx && \ sh /app/init/env.sh env-config.js && \ sh /app/init/inject-base-href.sh && \ export DISABLE_IPV6=\"$([[ \"$ENABLE_IPV6\" = \"true\" ]] && echo \"false\" || echo \"true\")\" && \