From 5c9b8b708e85ffe205c0fd0141220fa4682167d7 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Thu, 15 Dec 2022 23:41:32 +0800 Subject: [PATCH] fix: php-worker ldap 5.6 7.0 ssl --- php-worker/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index fdad0f32..5f3a80fd 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -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; \