11# -----------------------------------------------------
22# Caddy Modules Builder
33# -----------------------------------------------------
4- FROM dunglas/frankenphp:builder-php8.5-bookworm AS builder
4+ FROM dunglas/frankenphp:1- builder-php8.5-trixie AS builder
55
66# Copy xcaddy from caddy builder
77COPY --from=caddy:builder /usr/bin/xcaddy /usr/bin/xcaddy
@@ -24,7 +24,7 @@ RUN CGO_ENABLED=1 \
2424# -----------------------------------------------------
2525# FrankenPHP
2626# ------------------------------------------------------
27- FROM dunglas/frankenphp:1-php8.5
27+ FROM dunglas/frankenphp:1-php8.5-trixie
2828
2929# Replace the official binary with the one containing custom modules
3030COPY --from=builder /usr/local/bin/frankenphp /usr/local/bin/frankenphp
@@ -35,7 +35,7 @@ ENV PORT=$PORT SERVER_NAME=":80, :$PORT"
3535ENV COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_NO_INTERACTION=1 COMPOSER_CACHE_DIR="/tmp"
3636ENV PHP_INI_SCAN_DIR=":$PHP_INI_DIR/app.conf.d"
3737
38- 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 grpc protobuf "
38+ ENV EXTENSIONS="amqp apcu ast bcmath exif gd gettext gmp igbinary imagick intl maxminddb mongodb opcache pcntl pdo_mysql pdo_pgsql redis sockets sysvmsg sysvsem sysvshm uuid xsl zip"
3939
4040ENV BUILD_DEPS="make git autoconf wget"
4141
@@ -65,15 +65,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends ${BUILD_DEPS} \
6565 libnss3-tools \
6666 && rm -rf /var/lib/apt/lists/*
6767
68- # Install latest libvips
69- # @see https://github.com/dooman87/imagemagick-docker/blob/main/Dockerfile.bookworm
70- ARG VIPS_VERSION=8.18.0
71- ENV LD_LIBRARY_PATH="/usr/local/lib"
72- ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
73-
74- COPY --chmod=755 scripts/install-libvips.sh /tmp/install-libvips.sh
75- RUN /tmp/install-libvips.sh ${VIPS_VERSION} && rm /tmp/install-libvips.sh
76-
7768# Install PHP extensions
7869RUN set -eux; install-php-extensions $EXTENSIONS
7970
0 commit comments