fix: php-worker ldap 5.6 7.0 ssl

This commit is contained in:
Shao Yu-Lung (Allen) 2022-12-15 23:41:32 +08:00
parent dd731bf73b
commit 5c9b8b708e

View File

@ -32,8 +32,13 @@ RUN apk --update add wget \
cyrus-sasl-dev \ cyrus-sasl-dev \
libgsasl-dev \ libgsasl-dev \
oniguruma-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; \ RUN pecl channel-update pecl.php.net; \