mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 14:45:38 +00:00
delete all root process
This commit is contained in:
@ -121,4 +121,4 @@ LABEL description="nginx built from source." \
|
||||
openssl="LibreSSL ${LIBRESSL_VERSION}." \
|
||||
nginx="nginx ${NGINX_VERSION}."
|
||||
|
||||
CMD ["/sbin/tini","--","run.sh"]
|
||||
CMD ["run.sh"]
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
touch /var/run/nginx.pid
|
||||
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs /www /tmp
|
||||
chmod -R 700 /certs
|
||||
su-exec $UID:$GID nginx
|
||||
exec su-exec $UID:$GID /sbin/tini -- nginx
|
||||
|
Reference in New Issue
Block a user