From c776c33645803c56c07f96479c170998e536c0d3 Mon Sep 17 00:00:00 2001 From: Tom Robertshaw Date: Fri, 14 Apr 2023 21:02:30 +0100 Subject: [PATCH] fix: laravel-horizon SSL --- laravel-horizon/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index 1d262082..3e47689e 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -31,10 +31,14 @@ RUN apk --update add wget \ cyrus-sasl-dev \ libgsasl-dev \ oniguruma-dev \ - libressl \ - libressl-dev \ supervisor \ - procps + procps; \ + 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; \ docker-php-ext-install mysqli mbstring pdo pdo_mysql xml pcntl; \