Merge pull request #3330 from bestlong/php-worker-ldap-5.6-7.0-ssl

fix: php-worker ldap 5.6 7.0 ssl
This commit is contained in:
Shao Yu-Lung (Allen) 2022-12-16 00:09:32 +08:00 committed by GitHub
commit 302ef140f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -32,8 +32,13 @@ RUN apk --update add wget \
cyrus-sasl-dev \
libgsasl-dev \
oniguruma-dev \
openssl-dev \
supervisor
supervisor; \
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ] || \
[ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
apk --update add libressl libressl-dev; \
else \
apk --update add openssl-dev; \
fi
RUN pecl channel-update pecl.php.net; \