-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
46 lines (43 loc) · 1.17 KB
/
Containerfile
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
FROM docker.io/library/php:8-fpm
RUN apt-get update && apt-get upgrade -y && apt-get autoclean
ADD --chmod=0755 \
https://github.com/mlocati/docker-php-extension-installer/releases/download/2.6.3/install-php-extensions \
/usr/local/bin/
RUN install-php-extensions \
apcu \
bcmath \
curl \
exif \
filter \
gd \
gettext \
gmp \
iconv \
# TODO: Use latest released version, after https://github.com/Imagick/imagick/issues/640 is fixed
imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 \
intl \
ldap \
mbstring \
mcrypt \
memcached \
mysqli \
opcache \
pcntl \
pdo \
pdo_mysql \
pdo_pgsql \
pgsql \
redis \
sysvsem \
zip
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.enable_cli=1'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini && \
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini && \
echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini