Skip to content

Commit 2102c58

Browse files
authored
Merge pull request #60 from maggie0002/patch-1
Format Dockerfile using Docker's conventions
2 parents 4689e12 + 9c6624e commit 2102c58

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

Dockerfile

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
FROM alpine:3.13
2-
LABEL Maintainer="Tim de Pater <[email protected]>" \
3-
Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
2+
LABEL Maintainer="Tim de Pater <[email protected]>"
3+
LABEL Description="Lightweight container with Nginx 1.18 & PHP 8.0 based on Alpine Linux."
44

55
# Install packages and remove default server definition
6-
RUN apk --no-cache add php8 php8-fpm php8-opcache php8-mysqli php8-json php8-openssl php8-curl \
7-
php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session \
8-
php8-mbstring php8-gd nginx supervisor curl && \
9-
rm /etc/nginx/conf.d/default.conf
6+
RUN apk --no-cache add \
7+
curl \
8+
nginx \
9+
php8 \
10+
php8-ctype \
11+
php8-curl \
12+
php8-dom \
13+
php8-fpm \
14+
php8-gd \
15+
php8-intl \
16+
php8-json \
17+
php8-mbstring \
18+
php8-mysqli \
19+
php8-opcache \
20+
php8-openssl \
21+
php8-phar \
22+
php8-session \
23+
php8-xml \
24+
php8-xmlreader \
25+
php8-zlib \
26+
supervisor \
27+
&& rm /etc/nginx/conf.d/default.conf
1028

1129
# Create symlink so programs depending on `php` still function
1230
RUN ln -s /usr/bin/php8 /usr/bin/php

0 commit comments

Comments
 (0)