updating paths for Alpine 3.11
This commit is contained in:
parent
fd564b47e1
commit
79b2d68bf7
2 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ RUN \
|
||||||
/etc/services.d/php-fpm7/supervise/control \
|
/etc/services.d/php-fpm7/supervise/control \
|
||||||
/etc/s6/services/s6-fdholderd/supervise/control \
|
/etc/s6/services/s6-fdholderd/supervise/control \
|
||||||
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \
|
&& 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
|
# Clean up
|
||||||
&& rm -rf "${GNUPGHOME}" /tmp/* \
|
&& rm -rf "${GNUPGHOME}" /tmp/* \
|
||||||
&& apk del gnupg libcap
|
&& apk del gnupg libcap
|
||||||
|
@ -62,7 +62,7 @@ WORKDIR /var/www
|
||||||
USER nobody:www-data
|
USER nobody:www-data
|
||||||
|
|
||||||
# mark dirs as volumes that need to be writable, allows running the container --read-only
|
# 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
|
EXPOSE 80 8080
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ events {
|
||||||
error_log /dev/stderr warn;
|
error_log /dev/stderr warn;
|
||||||
|
|
||||||
# The file storing the process ID of the main process
|
# 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
|
# The process is managed in the docker-env
|
||||||
daemon off;
|
daemon off;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue