generated from Monogramm/wp-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
64 lines (56 loc) · 1.27 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM composer:1.10 as builder-composer
FROM alpine:3.12 as builder
COPY bin/install-wp-tests.sh /install-wp-tests.sh
COPY bin/generate-plugin-zip.sh /generate-plugin-zip.sh
COPY --from=builder-composer /usr/bin/composer /usr/bin/composer
ENV DOCKER_TESTS=true
RUN set -ex; \
chmod +x \
/install-wp-tests.sh \
/usr/bin/composer \
; \
apk add --update \
bash \
curl \
subversion \
; \
apk add --no-cache \
php7 \
php7-exif \
php7-fileinfo \
php7-gd \
php7-ldap \
php7-json \
php7-phar \
php7-iconv \
php7-intl \
php7-openssl \
php7-curl \
php7-ctype \
php7-dom \
php7-mbstring \
php7-mysqli \
php7-pdo_mysql \
php7-simplexml \
php7-soap \
php7-tokenizer \
php7-xml \
php7-xmlreader \
php7-xmlwriter \
php7-zip \
; \
apk add --no-cache \
nodejs \
npm \
; \
npm install grunt; \
npm install -g grunt-cli;
COPY docker-test.sh /docker-test.sh
RUN set -ex; \
chmod +x \
/docker-test.sh \
/install-wp-tests.sh \
/generate-plugin-zip.sh \
/usr/bin/composer \
;
CMD ["/docker-test.sh"]