-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
40 lines (38 loc) · 987 Bytes
/
Dockerfile.template
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
FROM {{ env.from }}
RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
libxml2-dev \
linux-headers \
&& apk add --no-cache --virtual .runtime-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
icu-dev \
&& pecl install \
redis \
{{ if env.subvariant != "" then ( -}}
{{ env.subvariant }} \
{{ ) else "" end -}}
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
gd \
opcache \
pdo_mysql \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
{{ if env.subvariant != "" then ( -}}
{{ env.subvariant }} \
{{ ) else "" end -}}
&& apk del .build-deps \
&& docker-php-source delete \
&& pecl clear-cache
COPY conf.d/php.overrides.ini $PHP_INI_DIR/conf.d