fix for arm

This commit is contained in:
neil 2022-07-31 19:34:58 +08:00
parent 31b12c3625
commit 4daaa37ed9

View file

@ -3,8 +3,7 @@ FROM php:8.1-fpm-bullseye
ARG FILES_ZIP ARG FILES_ZIP
# can be x86_64 or aarch64
ARG ARCH=x86_64
LABEL org.label-schema.description="SnappyMail webmail client image using nginx, php-fpm based on Debian Buster" LABEL org.label-schema.description="SnappyMail webmail client image using nginx, php-fpm based on Debian Buster"
@ -29,7 +28,7 @@ RUN mkdir -p /usr/share/man/man1/ /usr/share/man/man3/ /usr/share/man/man7/ && \
# Install PHP extensions # Install PHP extensions
RUN php -m && \ RUN php -m && \
docker-php-ext-configure ldap --with-libdir=lib/$ARCH-linux-gnu/ && \ docker-php-ext-configure ldap --with-libdir=lib/$(uname -m)-linux-gnu/ && \
docker-php-ext-configure intl && \ docker-php-ext-configure intl && \
docker-php-ext-configure gd --with-freetype --with-jpeg && \ docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install ldap opcache pdo_mysql pdo_pgsql zip intl gd && \ docker-php-ext-install ldap opcache pdo_mysql pdo_pgsql zip intl gd && \