From 79b2d68bf7c87ce842a2aeebad243c5789573c1c Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 21 Dec 2019 15:06:56 +0100 Subject: [PATCH] updating paths for Alpine 3.11 --- Dockerfile | 4 ++-- etc/nginx/nginx.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c15b9b..881db9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ RUN \ /etc/services.d/php-fpm7/supervise/control \ /etc/s6/services/s6-fdholderd/supervise/control \ && setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \ - && chown -R nobody.www-data /var/lib/nginx /var/tmp/nginx /var/www /srv/* /etc/services.d /etc/s6 /run \ + && chown -R nobody.www-data /etc/services.d /etc/s6 /run /srv/* /var/lib/nginx /var/www \ # Clean up && rm -rf "${GNUPGHOME}" /tmp/* \ && apk del gnupg libcap @@ -62,7 +62,7 @@ WORKDIR /var/www USER nobody:www-data # mark dirs as volumes that need to be writable, allows running the container --read-only -VOLUME /srv/data /tmp /var/tmp/nginx /run /var/log +VOLUME /run /srv/data /tmp /var/lib/nginx/tmp EXPOSE 80 8080 diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index e465ee3..8cb7dbc 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -22,7 +22,7 @@ events { error_log /dev/stderr warn; # The file storing the process ID of the main process -pid /var/run/nginx.pid; +pid /run/nginx.pid; # The process is managed in the docker-env daemon off;