Added ldap, sockets, xattr for features.

This commit is contained in:
Joao Alves 2021-05-20 14:34:26 +01:00
parent a72b3d20c3
commit d61e8132dc
2 changed files with 12 additions and 6 deletions

View file

@ -11,8 +11,10 @@ STOPSIGNAL SIGINT
WORKDIR /var/www/html
RUN apk add --no-cache zip libzip openssl bzip2 \
&& apk add --no-cache --virtual .build-deps libzip-dev openssl-dev bzip2-dev oniguruma-dev openldap-dev \
&& docker-php-ext-install zip fileinfo phar bz2 iconv mbstring ldap \
&& apk add --no-cache --virtual .build-deps libzip-dev openssl-dev bzip2-dev oniguruma-dev openldap-dev build-base autoconf \
&& pecl install xattr-1.4.0 \
&& rm -rf /tmp/pear \
&& docker-php-ext-install zip fileinfo phar bz2 iconv mbstring ldap sockets \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
@ -20,7 +22,8 @@ RUN apk add --no-cache zip libzip openssl bzip2 \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --virtual .phpexts-rundeps $runDeps \
&& apk del .build-deps
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
COPY *.php /var/www/html/
COPY *.json /var/www/html/

View file

@ -11,8 +11,10 @@ STOPSIGNAL SIGINT
WORKDIR /var/www/html
RUN apk add --no-cache zip libzip openssl bzip2 \
&& apk add --no-cache --virtual .build-deps libzip-dev openssl-dev bzip2-dev oniguruma-dev openldap-dev \
&& docker-php-ext-install zip fileinfo phar bz2 iconv mbstring ldap \
&& apk add --no-cache --virtual .build-deps libzip-dev openssl-dev bzip2-dev oniguruma-dev openldap-dev build-base autoconf \
&& pecl install xattr-1.4.0 \
&& rm -rf /tmp/pear \
&& docker-php-ext-install zip fileinfo phar bz2 iconv mbstring ldap sockets \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
@ -20,7 +22,8 @@ RUN apk add --no-cache zip libzip openssl bzip2 \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --virtual .phpexts-rundeps $runDeps \
&& apk del .build-deps
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
COPY *.php /var/www/html/
COPY *.json /var/www/html/