We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecaa17 commit 89af009Copy full SHA for 89af009
Dockerfile
@@ -7,9 +7,10 @@ WORKDIR /tmp/php-build
7
RUN ./install-dependencies.sh
8
RUN ./install.sh
9
# Latest stable and latest snapshot versions:
10
+ENV PHP_BUILD_CONFIGURE_OPTS="--with-libxml"
11
RUN php-build 7.4.10 /etc/php/7.4
12
+# Other supported:
13
RUN php-build 8.0snapshot /etc/php/8.0
-# Previous supported:
14
RUN php-build 7.3.22 /etc/php/7.3
15
RUN php-build 7.2.33 /etc/php/7.2
16
RUN php-build 7.1.33 /etc/php/7.1
switch-php-version
@@ -1,3 +1,10 @@
1
#!/bin/bash
2
+if [ "$1" = "latest" ]
3
+then
4
+ version=7.4
5
+else
6
+ version=$1
+fi
+
rm -f /usr/bin/php
-ln -s "/etc/php/$1/bin/php" "/usr/bin/php"
+ln -s "/etc/php/$version/bin/php" "/usr/bin/php"
0 commit comments