-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
41 lines (33 loc) · 762 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
32
33
34
35
36
37
38
39
40
41
FROM alpine:latest
# Update and install packages
RUN apk update
RUN apk add --no-cache \
bash \
curl \
git \
unzip \
php7 \
php7-xml \
php7-zip \
php7-xmlreader \
php7-zlib \
php7-opcache \
php7-mcrypt \
php7-openssl \
php7-curl \
php7-json \
php7-dom \
php7-phar \
php7-mbstring \
php7-ctype \
RUN rm -fr /var/cache/apk/*
# Install composer.
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
# Put a turbo on composer.
RUN composer global require hirak/prestissimo
COPY composer.json /opt/behat/composer.json
# Install Behat
RUN cd /opt/behat && composer install 2>&1
ENV PATH $PATH:/opt/behat/bin
WORKDIR /src
ENTRYPOINT ["behat"]