-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (47 loc) · 1.52 KB
/
Copy pathDockerfile
File metadata and controls
55 lines (47 loc) · 1.52 KB
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
47
48
49
50
51
52
53
54
55
FROM php:8.2-fpm
COPY --chmod=0755 entrypoint.sh /entrypoint.sh
# ---- system deps (required for compiling PHP extensions) ----
RUN apt-get update && apt-get install -y \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
libicu-dev \
libxml2-dev \
zip \
unzip \
libgmp-dev \
libpq-dev \
$PHPIZE_DEPS \
&& rm -rf /var/lib/apt/lists/*
# ---- configure GD properly (IPB uses image handling) ----
RUN docker-php-ext-configure gd \
--with-freetype \
--with-jpeg
# ---- install core extensions required by IPB 4.7 ----
RUN docker-php-ext-install -j$(nproc) \
mysqli \
pdo_mysql \
pdo_pgsql \
pgsql \
gd \
zip \
intl \
opcache \
exif \
gmp
RUN pecl install redis \
&& docker-php-ext-enable redis
# install xdebug but leave it off by default (configured in entrypoint)
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& docker-php-source delete
# ---- install core extensions required by IPB 4.7 ----
RUN echo "memory_limit=256M" >> /usr/local/etc/php/conf.d/custom.ini \
&& echo "upload_max_filesize=100M" >> /usr/local/etc/php/conf.d/custom.ini \
&& echo "post_max_size=100M" >> /usr/local/etc/php/conf.d/custom.ini \
&& echo "max_execution_time=300" >> /usr/local/etc/php/conf.d/custom.ini \
&& echo "opcache.enable=1" >> /usr/local/etc/php/conf.d/custom.ini \
&& printf "\n[www]\nrequest_terminate_timeout = 300\n" >> /usr/local/etc/php-fpm.d/zz-timeouts.conf
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]