Skip to content

Commit a9b1969

Browse files
authored
Merge pull request #40 from fagiani/master
Move defaults removal to upper layer
2 parents be1b70d + d972e69 commit a9b1969

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ FROM alpine:3.11
22
LABEL Maintainer="Tim de Pater <[email protected]>" \
33
Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.3 based on Alpine Linux."
44

5-
# Install packages
5+
# Install packages and remove default server definition
66
RUN apk --no-cache add php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
77
php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session \
8-
php7-mbstring php7-gd nginx supervisor curl
8+
php7-mbstring php7-gd nginx supervisor curl && \
9+
rm /etc/nginx/conf.d/default.conf
910

1011
# Configure nginx
1112
COPY config/nginx.conf /etc/nginx/nginx.conf
12-
# Remove default server definition
13-
RUN rm /etc/nginx/conf.d/default.conf
1413

1514
# Configure PHP-FPM
1615
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf

0 commit comments

Comments
 (0)