-
Notifications
You must be signed in to change notification settings - Fork 3
/
behat3.4.docker
32 lines (30 loc) · 1022 Bytes
/
behat3.4.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# chekote/behat3.4:latest
# chekote/behat3.4:php${PHP_MAJOR_VERSION}
# chekote/behat3.4:php${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
# chekote/behat3.4:php${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}.${PHP_PATCH_VERSION}
# chekote/behat3.4:php${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}.${PHP_PATCH_VERSION}-$(date '+%Y-%m-%d-%H-%M-%S')
ARG PHP_VERSION=7.2
FROM chekote/composer:php$PHP_VERSION
ENV MIN_PHP_VERSION='5.3.3'
RUN set -eu; \
#
check_php_version $MIN_PHP_VERSION; \
#
apt-get update; \
apt-get install -y --no-install-recommends --no-install-suggests \
#
# Behat requirements. See https://github.com/Behat/Behat/blob/v3.4.0/composer.json
php${PHP_VERSION}-mbstring \
#
# JUnitOutputPrinter requirements.
php${PHP_VERSION}-dom; \
#
# Cleanup
apt-get autoremove -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /var/cache/apt/*; \
#
# Make sure everything works
php -v; \
php-fpm$PHP_VERSION -v