mirror of
				https://github.com/mashirozx/docker-php-nginx.git
				synced 2025-05-29 01:49:24 +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
 | 
					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
 | 
					# Make sure files/folders needed by the processes are accessable when they run under the nobody user
 | 
				
			||||||
RUN touch /run/nginx.pid && \
 | 
					RUN chown -R nobody.nobody /run && \
 | 
				
			||||||
  touch /run/supervisord.pid && \
 | 
					  chown -R nobody.nobody /var/lib/nginx && \
 | 
				
			||||||
  chown -R nobody.nobody /run/nginx.pid && \
 | 
					 | 
				
			||||||
  chown -R nobody.nobody /run/supervisord.pid && \
 | 
					 | 
				
			||||||
  chown -R nobody.nobody /var/tmp/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
 | 
					# Setup document root
 | 
				
			||||||
RUN mkdir -p /var/www/html
 | 
					RUN mkdir -p /var/www/html
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user