Merge pull request #60 from maggie0002/patch-1

Format Dockerfile using Docker's conventions
This commit is contained in:
Tim de Pater 2021-05-22 08:14:45 +02:00 committed by GitHub
commit 2102c58220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,30 @@
FROM alpine:3.13
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
LABEL Maintainer="Tim de Pater <code@trafex.nl>"
LABEL Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
# 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 \
php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session \
php8-mbstring php8-gd nginx supervisor curl && \
rm /etc/nginx/conf.d/default.conf
RUN apk --no-cache add \
curl \
nginx \
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
# Create symlink so programs depending on `php` still function
RUN ln -s /usr/bin/php8 /usr/bin/php