maggie0002 2021-05-14 10:51:52 -07:00 committed by GitHub
parent dab1e6766f
commit 9c6624e118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,30 @@
FROM alpine:3.13 FROM alpine:3.13
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \ LABEL Maintainer="Tim de Pater <code@trafex.nl>"
Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux." LABEL Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
# Install packages and remove default server definition # Install packages and remove default server definition
RUN apk --no-cache add php8 php8-fpm php8-opcache php8-mysqli php8-json php8-openssl php8-curl \ RUN apk --no-cache add \
php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session \ curl \
php8-mbstring php8-gd nginx supervisor curl && \ nginx \
rm /etc/nginx/conf.d/default.conf php8 \
php8-ctype \
php8-curl \
php8-dom \
php8-fpm \
php8-gd \
php8-intl \
php8-json \
php8-mbstring \
php8-mysqli \
php8-opcache \
php8-openssl \
php8-phar \
php8-session \
php8-xml \
php8-xmlreader \
php8-zlib \
supervisor \
&& rm /etc/nginx/conf.d/default.conf
# Configure nginx # Configure nginx
COPY config/nginx.conf /etc/nginx/nginx.conf COPY config/nginx.conf /etc/nginx/nginx.conf