This repository was archived by the owner on Jun 4, 2024. It is now read-only.
File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
dockerfile : tests/docker/Dockerfile
7
7
context : .
8
8
args :
9
- - PHP_VERSION =${PHP_VERSION:-7.4}
9
+ - BUILD_PHP_VERSION =${PHP_VERSION:-7.4}
10
10
extra_hosts : # https://stackoverflow.com/a/67158212/1106908
11
11
- " host.docker.internal:host-gateway"
12
12
volumes :
Original file line number Diff line number Diff line change 1
- ARG PHP_VERSION
1
+ ARG BUILD_PHP_VERSION
2
2
# FROM php:7.1-cli
3
- FROM php:$PHP_VERSION-cli
3
+ FROM php:$BUILD_PHP_VERSION-cli
4
+ # ARG is lost after FROM, so we need to specify it again https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
5
+ ARG BUILD_PHP_VERSION
4
6
5
7
ENV DEBIAN_FRONTEND=noninteractive
6
8
@@ -33,7 +35,7 @@ RUN apt-get update && \
33
35
apt-get clean && \
34
36
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
35
37
# https://xdebug.org/docs/compat \
36
- && if [ "$PHP_VERSION " = "8.2" ] ; then pecl install xdebug ; else pecl install xdebug-3.1.5 ; fi \
38
+ && if [ "$BUILD_PHP_VERSION " = "8.2" ] ; then pecl install xdebug ; else pecl install xdebug-3.1.5 ; fi \
37
39
&& docker-php-ext-enable xdebug \
38
40
&& docker-php-ext-install \
39
41
zip \
You can’t perform that action at this time.
0 commit comments