-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbehat3.4-alpine.docker
More file actions
31 lines (28 loc) · 933 Bytes
/
behat3.4-alpine.docker
File metadata and controls
31 lines (28 loc) · 933 Bytes
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
# chekote/behat3.4:latest
# chekote/behat3.4:${PHP_MAJOR_VERSION}
# chekote/behat3.4:${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
# chekote/behat3.4:${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}.${PHP_PATCH_VERSION}
# chekote/behat3.4:${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}.${PHP_PATCH_VERSION}-$(date '+%Y-%m-%d-%H-%M-%S')
ARG PHP_MAJOR_VERSION=7
ARG PHP_MINOR_VERSION=2
FROM chekote/composer-alpine:$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION
ENV MIN_PHP_VERSION='5.3.3'
RUN set -eu; \
#
check_php_version $MIN_PHP_VERSION; \
#
apk update; \
apk add --no-cache \
#
# 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
rm -rf /var/cache/apk/*; \
#
# Make sure everything works
php -v; \
php-fpm$PHP_VERSION -v