Now able to set default PHP CLI interpreter when typing php

This commit is contained in:
eroncero
2025-07-17 12:22:56 +02:00
parent c7f8824a4d
commit dcefbaa62e
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y
COPY project/buildtime/sury-repo.sh /tmp/buildtime/sury-repo.sh
RUN /bin/sh /tmp/buildtime/sury-repo.sh
#ENV DEF_PHP_VER="8.1"
ENV DEF_PHP_INTERPRETER="8.2"
COPY project/buildtime/install-def-php.sh /tmp/buildtime/install-def-php.sh
RUN /bin/sh /tmp/buildtime/install-def-php.sh

View File

@@ -43,3 +43,4 @@ for version in $PHP_VERSIONS; do
php$version-zip
done
update-alternatives --set php /usr/bin/php$DEF_PHP_INTERPRETER