Skip to content

Commit 3ecaa17

Browse files
author
Greg Bowler
committed
Initial commit
1 parent 678555c commit 3ecaa17

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ RUN php-build 8.0snapshot /etc/php/8.0
1313
RUN php-build 7.3.22 /etc/php/7.3
1414
RUN php-build 7.2.33 /etc/php/7.2
1515
RUN php-build 7.1.33 /etc/php/7.1
16+
17+
COPY switch-php-version /usr/local/bin/.
18+
RUN switch-php-version 7.4

switch-php-version

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
rm -f /usr/bin/php
3+
ln -s "/etc/php/$1/bin/php" "/usr/bin/php"

0 commit comments

Comments
 (0)