Merge pull request #40 from fagiani/master

Move defaults removal to upper layer
This commit is contained in:
Tim de Pater 2020-06-12 16:19:03 +02:00 committed by GitHub
commit a9b19696cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,15 +2,14 @@ FROM alpine:3.11
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
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 \
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
COPY config/nginx.conf /etc/nginx/nginx.conf
# Remove default server definition
RUN rm /etc/nginx/conf.d/default.conf
# Configure PHP-FPM
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf