Skip to content

Commit e6d0819

Browse files
committed
fixed PHP extensions
1 parent c53a78c commit e6d0819

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

8.4-frankenphp/Dockerfile

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ARG PORT=9001
88
ENV PORT=$PORT SERVER_NAME=":80, :$PORT"
99
ENV COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_NO_INTERACTION=1 COMPOSER_CACHE_DIR="/tmp"
1010
ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
11+
12+
ENV EXTENSIONS="amqp apcu ast bcmath exif ffi gd gettext gmp igbinary imagick intl maxminddb mongodb opcache pcntl pdo_mysql pdo_pgsql redis sockets sysvmsg sysvsem sysvshm uuid xsl zip"
13+
1114
ENV BUILD_DEPS="make git autoconf wget"
1215

1316
COPY --link --chmod=755 ./8.4-frankenphp/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
@@ -16,6 +19,9 @@ ENTRYPOINT ["docker-entrypoint"]
1619

1720
WORKDIR /app
1821

22+
# Composer install
23+
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
24+
1925
RUN apt-get update && apt-get install -y --no-install-recommends ${BUILD_DEPS} \
2026
acl \
2127
file \
@@ -33,6 +39,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends ${BUILD_DEPS} \
3339

3440
####################################################################################################
3541
# Install latest imagemagick
42+
# @see https://github.com/dooman87/imagemagick-docker/blob/main/Dockerfile.bookworm
43+
####################################################################################################
3644
ARG IM_VERSION=7.1.1-41
3745
ARG LIB_HEIF_VERSION=1.19.5
3846
ARG LIB_AOM_VERSION=3.11.0
@@ -100,6 +108,8 @@ RUN apt-get -y update && \
100108

101109
####################################################################################################
102110
# Install latest libvips
111+
# @see https://github.com/dooman87/imagemagick-docker/blob/main/Dockerfile.bookworm
112+
####################################################################################################
103113
ARG VIPS_VERSION=8.16.0
104114
ENV VIPS_BUILD_DEPS="build-essential ninja-build meson wget pkg-config"
105115
ENV VIPS_DEPS="libvips-dev"
@@ -118,34 +128,8 @@ RUN apt-get -y update && \
118128
rm -rf /var/lib/apt/lists/* && \
119129
rm -rf /usr/local/src/vips-*
120130

121-
RUN set -eux; \
122-
install-php-extensions \
123-
@composer \
124-
amqp \
125-
apcu \
126-
bcmath \
127-
exif \
128-
ffi \
129-
gd \
130-
gmp \
131-
igbinary \
132-
imagick \
133-
intl \
134-
maxminddb \
135-
mongodb \
136-
opcache \
137-
pcntl \
138-
pdo_mysql \
139-
pdo_pgsql \
140-
redis \
141-
sockets \
142-
sysvmsg \
143-
sysvsem \
144-
sysvshm \
145-
uuid \
146-
xsl \
147-
zip \
148-
;
131+
# Install PHP extensions
132+
RUN set -eux; install-php-extensions $EXTENSIONS
149133

150134
# Copying manifest files to host
151135
COPY ./8.4-frankenphp/manifest /

8.4/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ ARG PUBLIC_DIR=public
2222

2323
ENV PORT=$PORT
2424
ENV PUBLIC_DIR=$PUBLIC_DIR
25+
ENV COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_NO_INTERACTION=1 COMPOSER_CACHE_DIR="/tmp"
26+
ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
2527

26-
ENV EXTENSIONS="redis apcu ast zip mongodb maxminddb amqp pdo_mysql pdo_pgsql bcmath opcache gettext intl exif sysvmsg sysvsem sysvshm pcntl gmp xsl bz2 gd igbinary uuid sockets imagick"
28+
ENV EXTENSIONS="amqp apcu ast bcmath exif ffi gd gettext gmp igbinary imagick intl maxminddb mongodb opcache pcntl pdo_mysql pdo_pgsql redis sockets sysvmsg sysvsem sysvshm uuid xsl zip"
2729

2830
ENV BUILD_DEPS="make git autoconf wget"
2931

30-
ENV COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_NO_INTERACTION=1 COMPOSER_CACHE_DIR="/tmp"
31-
ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
32-
3332
# Caddy
3433
COPY --from=builder /usr/bin/caddy /usr/local/bin/caddy
3534

@@ -132,6 +131,8 @@ RUN apt-get -y update && \
132131

133132
####################################################################################################
134133
# Install latest libvips
134+
# @see https://github.com/dooman87/imagemagick-docker/blob/main/Dockerfile.bookworm
135+
####################################################################################################
135136
ARG VIPS_VERSION=8.16.0
136137
ENV VIPS_BUILD_DEPS="build-essential ninja-build meson pkg-config"
137138
ENV VIPS_DEPS="libvips-dev"

0 commit comments

Comments
 (0)