# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
# from https://downloads.joomla.org/technical-requirements
FROM php:8.2-fpm-alpine
LABELmaintainer="Llewellyn van der Merwe <llewellyn.van-der-merwe@community.joomla.org> (@Llewellynvdm), Harald Leithner <harald.leithner@community.joomla.org> (@HLeithner)"
# Disable remote database security requirements.
ENVJOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
RUNset -eux;\
apk add --no-cache \
# in theory, docker-entrypoint.sh is POSIX-compliant, but priority is a working, consistent image
bash \
# Ghostscript is required for rendering PDF previews
ghostscript \
# Alpine package for "imagemagick" contains ~120 .so files
imagemagick \
;
# install the PHP extensions we need.
RUNset -ex;\
\
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS\
autoconf \
bzip2-dev \
gmp-dev \
icu-dev \
freetype-dev \
imagemagick-dev \
libjpeg-turbo-dev \
libmemcached-dev \
libpng-dev \
libwebp-dev \
libzip-dev \
openldap-dev \
pcre-dev \
postgresql-dev \
;\
\
docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
;\
docker-php-ext-configure ldap;\
docker-php-ext-install -j "$(nproc)"\
bz2 \
bcmath \
exif \
gd \
gmp \
intl \
ldap \
mysqli \
pdo_mysql \
pdo_pgsql \
pgsql \
zip \
;\
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328