From 68fc4ca050ac8f1a445b45aa5296b33486badb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 4 Apr 2018 14:18:37 +0200 Subject: [PATCH] Fix nginx on readonly filesystems --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 80a804a..17fa426 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,7 @@ ONBUILD RUN chown -R ${AVATAO_USER} /var/log/nginx /var/lib/nginx for f in "${TFW_NGINX_DEFAULT}" ${TFW_NGINX_COMPONENTS}/*.conf; do \ envsubst "$(printenv | cut -d= -f1 | grep TFW_ | sed -e 's/^/$/g')" < $f > $f~ && mv $f~ $f ;\ done +ONBUILD VOLUME ["/etc/nginx", "/var/lib/nginx", "/var/log/nginx"] ONBUILD COPY ${BUILD_CONTEXT}/frontend /data/ ONBUILD RUN test -z "${NOFRONTEND}" && cd /data && yarn install --frozen-lockfile || :