version: '3'
services:
php-7.2:
volumes:
- php72:/workdir
- "./src:/workdir/src:ro"
- "./tests:/workdir/tests:ro"
- "./composer.json:/workdir/composer.json:ro"
build:
context: .
dockerfile: Dockerfile-tests
args:
IMAGE: php:7.2-cli-alpine
PACKAGES: git zip unzip icu-dev
PHPMODS: intl
php-7.3:
volumes:
- php73:/workdir
- "./src:/workdir/src:ro"
- "./tests:/workdir/tests:ro"
- "./composer.json:/workdir/composer.json:ro"
build:
context: .
dockerfile: Dockerfile-tests
args:
IMAGE: php:7.3-cli-alpine
PACKAGES: git zip unzip icu-dev
PHPMODS: intl
php-7.4:
volumes:
- php74:/workdir
- "./src:/workdir/src:ro"
- "./tests:/workdir/tests:ro"
- "./composer.json:/workdir/composer.json:ro"
build:
context: .
dockerfile: Dockerfile-tests
args:
IMAGE: php:7.4-rc-cli-alpine
PACKAGES: git zip unzip icu-dev
PHPMODS: intl
volumes:
php72:
php73:
php74:
|