1
- # https://github.com/docker-library/php/blob/master/7.3/buster /fpm/Dockerfile
2
- FROM php:7.3 -fpm-buster
1
+ # https://github.com/docker-library/php/blob/master/8.1/bookworm /fpm/Dockerfile
2
+ FROM php:8.1 -fpm-bookworm
3
3
4
- ENV PHP_MEMORYLIMIT 2048M
5
- ENV PHP_TIMEZONE Europe/Warsaw
6
- ENV PHP_MAXFILESIZE 100M
7
- ENV PHP_MAXEXECTIME 300
4
+ ENV PHP_MEMORYLIMIT= 2048M
5
+ ENV PHP_TIMEZONE= Europe/Warsaw
6
+ ENV PHP_MAXFILESIZE= 100M
7
+ ENV PHP_MAXEXECTIME= 300
8
8
ARG CONFD_VERSION
9
- ENV CONFD_VERSION ${CONFD_VERSION:-0.11.0}
10
- ENV COMPOSER_ALLOW_SUPERUSER 1
9
+ ENV CONFD_VERSION= ${CONFD_VERSION:-0.11.0}
10
+ ENV COMPOSER_ALLOW_SUPERUSER= 1
11
11
12
- RUN extBuildDeps=" \
12
+ RUN --mount=type=cache,target=/var/cache/apt \
13
+ --mount=type=cache,target=/var/lib/apt \
14
+ extBuildDeps=" \
13
15
libfreetype6 \
14
16
libfreetype6-dev \
15
17
libpng-dev \
@@ -20,6 +22,10 @@ RUN extBuildDeps=" \
20
22
libmcrypt-dev \
21
23
libldap2-dev \
22
24
zlib1g-dev \
25
+ libavif-dev \
26
+ libwebp-dev \
27
+ libpq-dev \
28
+ libonig-dev \
23
29
" ; \
24
30
set -x \
25
31
&& usermod -u 1000 www-data \
@@ -39,15 +45,15 @@ RUN extBuildDeps=" \
39
45
libzip-dev \
40
46
sendmail && \
41
47
rm -rf /var/lib/apt/lists/* && \
42
- docker-php-ext-configure gd --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu && \
48
+ docker-php-ext-configure gd --enable-gd --with-webp --with-avif --with-jpeg --with-freetype && \
43
49
docker-php-ext-configure intl --enable-intl && \
44
50
docker-php-ext-install \
45
51
exif \
46
52
pdo \
47
53
pdo_mysql \
54
+ pdo_pgsql \
48
55
zip \
49
56
intl \
50
- iconv \
51
57
mbstring \
52
58
gd \
53
59
pcntl \
@@ -67,16 +73,9 @@ RUN extBuildDeps=" \
67
73
echo 'ForwardAgent yes' >> /etc/ssh/ssh_config && \
68
74
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
69
75
composer clear-cache && \
70
- mkdir -p /root/.ssh/ && \
71
- ssh-keyscan github.com >> /root/.ssh/known_hosts
76
+ mkdir -p /root/.ssh/
72
77
73
- RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;" ) \
74
- && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
75
- && mkdir -p /tmp/blackfire \
76
- && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
77
- && mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');" )/blackfire.so \
78
- && printf "extension=blackfire.so\n blackfire.agent_socket=tcp://blackfire:8707\n " > $PHP_INI_DIR/conf.d/blackfire.ini \
79
- && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
78
+ COPY know_hosts /root/.ssh/known_hosts
80
79
81
80
EXPOSE 9000
82
81
COPY confd/ /etc/confd/
0 commit comments