mirror of
				https://github.com/mashirozx/docker-php-nginx.git
				synced 2025-05-29 01:49:24 +08:00 
			
		
		
		
	Format Dockerfile using Docker's conventions
Sort multi-line arguments: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#sort-multi-line-arguments LABEL: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#label
This commit is contained in:
		
							parent
							
								
									dab1e6766f
								
							
						
					
					
						commit
						9c6624e118
					
				
							
								
								
									
										30
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								Dockerfile
									
									
									
									
									
								
							@ -1,12 +1,30 @@
 | 
			
		||||
FROM alpine:3.13
 | 
			
		||||
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
 | 
			
		||||
      Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
 | 
			
		||||
LABEL Maintainer="Tim de Pater <code@trafex.nl>"
 | 
			
		||||
LABEL Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
 | 
			
		||||
 | 
			
		||||
# Install packages and remove default server definition
 | 
			
		||||
RUN apk --no-cache add php8 php8-fpm php8-opcache php8-mysqli php8-json php8-openssl php8-curl \
 | 
			
		||||
    php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session \
 | 
			
		||||
    php8-mbstring php8-gd nginx supervisor curl && \
 | 
			
		||||
    rm /etc/nginx/conf.d/default.conf
 | 
			
		||||
RUN apk --no-cache add \
 | 
			
		||||
  curl \
 | 
			
		||||
  nginx \
 | 
			
		||||
  php8 \
 | 
			
		||||
  php8-ctype \
 | 
			
		||||
  php8-curl \
 | 
			
		||||
  php8-dom \
 | 
			
		||||
  php8-fpm \
 | 
			
		||||
  php8-gd \
 | 
			
		||||
  php8-intl \
 | 
			
		||||
  php8-json \
 | 
			
		||||
  php8-mbstring \
 | 
			
		||||
  php8-mysqli \
 | 
			
		||||
  php8-opcache \
 | 
			
		||||
  php8-openssl \
 | 
			
		||||
  php8-phar \
 | 
			
		||||
  php8-session \
 | 
			
		||||
  php8-xml \
 | 
			
		||||
  php8-xmlreader \
 | 
			
		||||
  php8-zlib \
 | 
			
		||||
  supervisor \
 | 
			
		||||
  && rm /etc/nginx/conf.d/default.conf
 | 
			
		||||
 | 
			
		||||
# Configure nginx
 | 
			
		||||
COPY config/nginx.conf /etc/nginx/nginx.conf
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user