Now able to set default PHP CLI interpreter when typing php
This commit is contained in:
@@ -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
|
COPY project/buildtime/sury-repo.sh /tmp/buildtime/sury-repo.sh
|
||||||
RUN /bin/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
|
COPY project/buildtime/install-def-php.sh /tmp/buildtime/install-def-php.sh
|
||||||
RUN /bin/sh /tmp/buildtime/install-def-php.sh
|
RUN /bin/sh /tmp/buildtime/install-def-php.sh
|
||||||
|
|
||||||
|
@@ -43,3 +43,4 @@ for version in $PHP_VERSIONS; do
|
|||||||
php$version-zip
|
php$version-zip
|
||||||
done
|
done
|
||||||
|
|
||||||
|
update-alternatives --set php /usr/bin/php$DEF_PHP_INTERPRETER
|
||||||
|
Reference in New Issue
Block a user