mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-22 06:48:14 +08:00
Merge pull request #60 from maggie0002/patch-1
Format Dockerfile using Docker's conventions
This commit is contained in:
commit
2102c58220
30
Dockerfile
30
Dockerfile
@ -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
|
||||||
|
|
||||||
# Create symlink so programs depending on `php` still function
|
# Create symlink so programs depending on `php` still function
|
||||||
RUN ln -s /usr/bin/php8 /usr/bin/php
|
RUN ln -s /usr/bin/php8 /usr/bin/php
|
||||||
|
Loading…
Reference in New Issue
Block a user