-
Notifications
You must be signed in to change notification settings - Fork 1
/
alpine.fpm_nginx.Dockerfile
55 lines (52 loc) · 1.01 KB
/
alpine.fpm_nginx.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ARG PHP_VERSION=8.1
FROM tobi312/php:${PHP_VERSION}-fpm-nginx-alpine-slim
ARG PHP_VERSION
SHELL ["/bin/sh", "-euxo", "pipefail", "-c"]
LABEL org.opencontainers.image.authors="Tobias Hargesheimer <[email protected]>" \
org.opencontainers.image.title="PHP-FPM+NGINX" \
org.opencontainers.image.description="Alpine with PHP-FPM ${PHP_VERSION} and NGINX" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/php" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-php"
# PHP
RUN \
PHP_EXTENSIONS_LIST=" \
@composer \
apcu \
bcmath \
bz2 \
calendar \
dba \
enchant \
exif \
ffi \
gd \
gettext \
gmp \
imagick \
imap \
intl \
ldap \
memcached \
mongodb \
mysqli \
opcache \
pdo_dblib \
pdo_mysql \
pdo_pgsql \
pgsql \
pspell \
redis \
shmop \
snmp \
tidy \
xsl \
yaml \
zip \
" \
; \
\
ARCH=`uname -m` ; \
echo "ARCH=$ARCH" ; \
install-php-extensions $PHP_EXTENSIONS_LIST ; \
php -m