forked from thecodingmachine/docker-images-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.7.1.apache
30 lines (24 loc) · 976 Bytes
/
Dockerfile.7.1.apache
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
ARG INSTALL_CRON=1
ARG INSTALL_COMPOSER=1
FROM thecodingmachine/php:7.1-v2-slim-apache
LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>, David Négrier <d.negrier@thecodingmachine.com>"
# |--------------------------------------------------------------------------
# | 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
# |--------------------------------------------------------------------------
ENV PHP_EXTENSION_APCU=1 \
PHP_EXTENSION_MYSQLI=1 \
PHP_EXTENSION_OPCACHE=1 \
PHP_EXTENSION_PDO=1 \
PHP_EXTENSION_PDO_MYSQL=1 \
PHP_EXTENSION_REDIS=1 \
PHP_EXTENSION_ZIP=1 \
PHP_EXTENSION_SOAP=1