mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-12-12 09:54:37 +08:00
Merge pull request #40 from fagiani/master
Move defaults removal to upper layer
This commit is contained in:
commit
a9b19696cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user