Fix nginx on readonly filesystems

This commit is contained in:
Kristóf Tóth 2018-04-04 14:18:37 +02:00
parent ade0936c6f
commit 68fc4ca050
1 changed files with 1 additions and 0 deletions

View File

@ -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 || :