forked from sun-asterisk-research/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfpm.Dockerfile
More file actions
32 lines (25 loc) · 687 Bytes
/
fpm.Dockerfile
File metadata and controls
32 lines (25 loc) · 687 Bytes
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
FROM php:7.2-fpm-alpine
LABEL maintainer="1@grep.su"
ENV EXTENSION_DEPS \
icu-libs \
postgresql-libs \
zlib
ENV BUILD_DEPS \
icu-dev \
postgresql-dev \
zlib-dev
RUN apk add --no-cache --virtual .extension-deps $EXTENSION_DEPS
# PHP extensions
RUN apk add --no-cache --virtual .build-deps $BUILD_DEPS \
&& NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \
&& docker-php-ext-install -j${NPROC} \
intl \
zip \
pgsql \
pdo_pgsql \
opcache \
&& apk del .build-deps
# Config files
COPY config/php.ini /usr/local/etc/php/
COPY config/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
CMD ["php-fpm"]