From d972e693415517c6fe2ebae20a775b64a2e80c53 Mon Sep 17 00:00:00 2001 From: Paulo Fagiani Date: Wed, 10 Jun 2020 22:24:55 -0300 Subject: [PATCH] Move defaults removal to upper layer --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a8cfc30..72e95f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,14 @@ FROM alpine:3.11 LABEL Maintainer="Tim de Pater " \ 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