mirror of
				https://github.com/mashirozx/docker-php-nginx.git
				synced 2025-05-29 01:49:24 +08:00 
			
		
		
		
	Move defaults removal to upper layer
This commit is contained in:
		
							parent
							
								
									be1b70deb6
								
							
						
					
					
						commit
						d972e69341
					
				@ -2,15 +2,14 @@ FROM alpine:3.11
 | 
				
			|||||||
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
 | 
					LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
 | 
				
			||||||
      Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.3 based on Alpine Linux."
 | 
					      Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.3 based on Alpine Linux."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install packages
 | 
					# Install packages and remove default server definition
 | 
				
			||||||
RUN apk --no-cache add php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
 | 
					RUN apk --no-cache add php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
 | 
				
			||||||
    php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session \
 | 
					    php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session \
 | 
				
			||||||
    php7-mbstring php7-gd nginx supervisor curl
 | 
					    php7-mbstring php7-gd nginx supervisor curl && \
 | 
				
			||||||
 | 
					    rm /etc/nginx/conf.d/default.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Configure nginx
 | 
					# Configure nginx
 | 
				
			||||||
COPY config/nginx.conf /etc/nginx/nginx.conf
 | 
					COPY config/nginx.conf /etc/nginx/nginx.conf
 | 
				
			||||||
# Remove default server definition
 | 
					 | 
				
			||||||
RUN rm /etc/nginx/conf.d/default.conf
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Configure PHP-FPM
 | 
					# Configure PHP-FPM
 | 
				
			||||||
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
 | 
					COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user