File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,14 @@ FROM alpine:3.11
2
2
LABEL Maintainer=
"Tim de Pater <[email protected] >" \
3
3
Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.3 based on Alpine Linux."
4
4
5
- # Install packages
5
+ # Install packages and remove default server definition
6
6
RUN apk --no-cache add php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
7
7
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
9
10
10
11
# Configure nginx
11
12
COPY config/nginx.conf /etc/nginx/nginx.conf
12
- # Remove default server definition
13
- RUN rm /etc/nginx/conf.d/default.conf
14
13
15
14
# Configure PHP-FPM
16
15
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
You can’t perform that action at this time.
0 commit comments