Skip to content

Commit 89af009

Browse files
author
Greg Bowler
committed
Use "latest" to signify latest stable
1 parent 3ecaa17 commit 89af009

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ WORKDIR /tmp/php-build
77
RUN ./install-dependencies.sh
88
RUN ./install.sh
99
# Latest stable and latest snapshot versions:
10+
ENV PHP_BUILD_CONFIGURE_OPTS="--with-libxml"
1011
RUN php-build 7.4.10 /etc/php/7.4
12+
# Other supported:
1113
RUN php-build 8.0snapshot /etc/php/8.0
12-
# Previous supported:
1314
RUN php-build 7.3.22 /etc/php/7.3
1415
RUN php-build 7.2.33 /etc/php/7.2
1516
RUN php-build 7.1.33 /etc/php/7.1

switch-php-version

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
#!/bin/bash
2+
if [ "$1" = "latest" ]
3+
then
4+
version=7.4
5+
else
6+
version=$1
7+
fi
8+
29
rm -f /usr/bin/php
3-
ln -s "/etc/php/$1/bin/php" "/usr/bin/php"
10+
ln -s "/etc/php/$version/bin/php" "/usr/bin/php"

0 commit comments

Comments
 (0)