Closed robjuz closed 3 years ago
my current fix
FROM thecodingmachine/php:7.3-v3-slim-apache as base
RUN sudo apt update
RUN sudo apt install -y --allow-downgrades libssl1.1=1.1.1-1ubuntu2.1~18.04.9
ONBUILD ENV PHP_EXTENSIONS="apcu bcmath pdo_dblib pdo_mysql gd intl soap"
ONBUILD RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_selected_extensions.sh
FROM base
@moufmouf Any ideas for a better fix?
Alternative
#fix libssl-dev dependencies
FROM thecodingmachine/php:7.4-v3-slim-apache
RUN sudo apt update && sudo apt install -y --allow-downgrades libssl1.1=1.1.1-1ubuntu2.1~18.04.9
ENV PHP_EXTENSIONS="apcu bcmath pdo_dblib pdo_mysql gd intl soap"
RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_selected_extensions.sh
COPY composer.* ./
RUN composer install --optimize-autoloader --no-dev
COPY . .
@moufmouf what do you thing about pinning the libssl version in the image directly?
I @robjuz, to be sure : you have the same issue on V4 slim image ?
No. Only the V3.
It’s probably related to the Ubuntu version.
V3 is using Ubuntu 18.04 an V4 20.04
We do not maintained this version. Please upgrade and if you need support in V4, i will help you. PR in V3 is still possible but workflow is no more activated.
Expected Behavior
php extensions in slim image installed
Current Behavior
php extensions not installed due to dependencies error
Possible Solution
hardcode the libssl version
apt install libssl1.1=1.1.1-1ubuntu2.1~18.04.9
Steps to Reproduce (for bugs)
produces