forked from thecodingmachine/docker-images-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.fpm
31 lines (27 loc) · 1.12 KB
/
Dockerfile.fpm
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
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint)
ARG INSTALL_CRON=1
ARG INSTALL_COMPOSER=1
ARG INSTALL_WKHTMLTOX=1
ARG PHP_VERSION
ARG GLOBAL_VERSION
ARG OWNER
FROM ${OWNER}/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-fpm-${TARGETARCH}
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>"
# |--------------------------------------------------------------------------
# | Main PHP extensions
# |--------------------------------------------------------------------------
# |
# | Installs the main PHP extensions
# |
USER root
RUN cd /usr/local/lib/thecodingmachine-php/extensions/current/ && ./install_all.sh && ./disable_all.sh
USER docker
# |--------------------------------------------------------------------------
# | Default PHP extensions to be enabled (in addition to the one declared in Slim build)
# |--------------------------------------------------------------------------
ENV PHP_EXTENSION_APCU=1 \
PHP_EXTENSION_MYSQLI=1 \
PHP_EXTENSION_PDO_MYSQL=1 \
PHP_EXTENSION_IGBINARY=1 \
PHP_EXTENSION_REDIS=1 \
PHP_EXTENSION_SOAP=1