Install PHP extensions correctly

Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
Marco Dickert 2022-12-05 11:01:07 +01:00
parent f2d1f8c2ee
commit 6d0d6c9e53

View File

@ -7,17 +7,20 @@ ENV IFM_ROOT_DIR="/var/www" \
# add missing extensions and dependencies # add missing extensions and dependencies
RUN apk add --no-cache \ RUN apk add --no-cache \
libbz2 \ bzip2-dev \
libzip \ libcap-dev \
libcap \ libcap-utils \
libzip-dev \
openldap-dev \ openldap-dev \
php8-bz2 \
php8-fileinfo \
php8-ldap \
php8-posix \
php8-zip \
sudo sudo
RUN docker-php-ext-install \
bz2 \
fileinfo \
ldap \
posix \
zip
# allow php binary to bind ports <1000, even if $USER != root # allow php binary to bind ports <1000, even if $USER != root
RUN /usr/sbin/setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php RUN /usr/sbin/setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php