Skip to content

Commit 903ebb0

Browse files
author
Stanislav Shupilkin
committed
Add arg PHP-VERSION in Dockerfile
1 parent 1d2807b commit 903ebb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM php:cli
1+
ARG PHP_VERSION
2+
3+
FROM php:${PHP_VERSION}-cli
24

35
RUN pecl install xdebug
46

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ services:
1010
volumes:
1111
- .:/code
1212
working_dir: /code
13+
environment:
14+
PHP_VERSION: ${TRAVIS_PHP_VERSION}
1315
command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit"
1416
depends_on:
1517
- mysql

0 commit comments

Comments
 (0)