We are using laravel based on php version 5.6, few days ago Debian removed jessie version (8) so we need to upgrade that to 9, but the issue is its hard to use Debian 9 without php5.6 as scripts like docker-php-ext-install does not seem to work there. i attach my section of the installation in the docker-file. Would appreciate if there is a solution to this
I have tried to install the pdo_mysql without the docker-php-ext-install but it fails cannot locate that..
FROM debian:9.0 RUN apt-get update \ && apt-get -y install \ apt-transport-https apt-utils \ lsb-release \ ca-certificates \ wget \ mcrypt \ libmcrypt-dev \ git-core \ unzip \ && wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \ && echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list \ && apt-get update \ && apt-get -y install gnupg2 php5.6-cli php5.6-fpm \ && apt-get update \ && docker-php-ext-install \ mbstring \ pdo_mysql \ mcrypt bcmath\ && update-alternatives --install /usr/bin/php php /usr/bin/php5.6 90 \ && update-alternatives --set php /usr/bin/php5.6
And this is the end of the build call :
Reading package lists... /bin/sh: 1: docker-php-ext-install: not found