-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.alpine.template
28 lines (22 loc) · 1.92 KB
/
Dockerfile.alpine.template
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
FROM alpine:3.12
LABEL maintainer "Raphaël Droz <[email protected]>"
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --no-cache add ca-certificates chromium firefox less bash wget curl git make sed nano jq zip subversion yarn socat fping mariadb-client patch \
php$$PHP_VERSION php$$PHP_VERSION-fpm php$$PHP_VERSION-curl php$$PHP_VERSION-pdo_sqlite php$$PHP_VERSION-pdo_mysql php$$PHP_VERSION-openssl php$$PHP_VERSION-iconv php$$PHP_VERSION-mbstring php$$PHP_VERSION-json php$$PHP_VERSION-dom php$$PHP_VERSION-mysqli php$$PHP_VERSION-gd php$$PHP_VERSION-soap \
php$$PHP_VERSION-xdebug php$$PHP_VERSION-ctype php$$PHP_VERSION-phar php$$PHP_VERSION-session php$$PHP_VERSION-xml php$$PHP_VERSION-xmlreader
# wp-cli/WordPress testsuite dep'. xsltproc/xpath is useful for WP XHR dumps
# mysql-client xsltproc libxml-xpath-perl python3-rjsmin
# behat/phpunit/phpcs part
RUN echo "date.timezone = Europe/Paris" | tee /etc/php$$PHP_VERSION/conf.d/80_timezone.ini \
&& curl -sSLo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-$$PHPUNIT_VERSION.phar \
&& curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/1.10.13/composer.phar \
&& curl -sSLo /usr/local/bin/phpcs https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar \
&& curl -sSLo /usr/local/bin/phpcbf https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar \
&& curl -sSLo /usr/local/bin/wp https://github.com/wp-cli/wp-cli/releases/download/v2.4.1/wp-cli-2.4.1.phar \
&& curl -sSLo /usr/local/bin/behat https://github.com/Behat/Behat/releases/download/v3.3.0/behat.phar \
&& chmod 755 /usr/local/bin/*
ENV DEBUG_ADDRESS=0.0.0.0 DEBUG_PORT=9222
ADD start.sh /usr/bin/
RUN chromium-browser --version && chmod +x /usr/bin/start.sh
CMD ["/usr/bin/start.sh"]
# Behat for FF limited by https://gitlab.com/DMore/chrome-mink-driver/-/issues/23 (non-selenium Mink PHP-driver for Marionette)