Skip to content

Commit c96f713

Browse files
committed
Always provide symlink to the current php
1 parent 6e44247 commit c96f713

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

php74/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ RUN set -e \
5454
php7-xmlwriter \
5555
php7-zip \
5656
$PHPRUN_DEPS \
57+
&& ln -fs php7 /usr/bin/php \
5758
# build extra extensions
5859
# && apk add --update --virtual .php-build \
5960
# --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \

php8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN set -e \
5656
php8-xmlwriter \
5757
php8-zip \
5858
$PHPRUN_DEPS \
59-
&& ln -s /usr/bin/php8 /usr/bin/php \
59+
&& ln -fs php8 /usr/bin/php \
6060
# build extra extensions
6161
# && apk add --virtual .php-build \
6262
# php8-dev php8-pear make gcc g++ \

php81/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN set -e \
5656
php81-xmlwriter \
5757
php81-zip \
5858
$PHPRUN_DEPS \
59-
&& ln -s php81 /usr/bin/php \
59+
&& ln -fs php81 /usr/bin/php \
6060
# build extra extensions
6161
# && apk add --virtual .php-build \
6262
# php8-dev php8-pear make gcc g++ \

0 commit comments

Comments
 (0)