mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-22 06:48:14 +08:00
Fixed a permission error when Nginx tries to write the error log or to
remove the pid
This commit is contained in:
parent
9ef6acf619
commit
b2afaef8d4
@ -18,12 +18,10 @@ COPY config/php.ini /etc/php7/conf.d/zzz_custom.ini
|
||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
|
||||
RUN touch /run/nginx.pid && \
|
||||
touch /run/supervisord.pid && \
|
||||
chown -R nobody.nobody /run/nginx.pid && \
|
||||
chown -R nobody.nobody /run/supervisord.pid && \
|
||||
RUN chown -R nobody.nobody /run && \
|
||||
chown -R nobody.nobody /var/lib/nginx && \
|
||||
chown -R nobody.nobody /var/tmp/nginx && \
|
||||
chown -R nobody.nobody /var/lib/nginx/logs
|
||||
chown -R nobody.nobody /var/log/nginx
|
||||
|
||||
# Setup document root
|
||||
RUN mkdir -p /var/www/html
|
||||
|
Loading…
Reference in New Issue
Block a user