File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -5,36 +5,38 @@ COPY composer.json /
5
5
FROM scratch AS test_source
6
6
7
7
COPY benchmarks/ benchmarks/
8
- COPY lib/ /lib/
9
8
COPY src/ /src/
10
9
COPY tests/ /tests/
11
10
COPY phpunit.xml.* phpstan.neon.* .php_cs.* phpbench.json /
12
11
13
12
FROM alpine:3.9
14
13
14
+ ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
15
+
16
+ RUN apk --update add ca-certificates && \
17
+ echo "https://dl.bintray.com/php-alpine/v3.9/php-7.4" >> /etc/apk/repositories
18
+
15
19
# alpine php package does not include default extensions, be explicit
16
20
RUN set -eu; \
17
21
apk add --no-cache \
18
- php7 \
19
- php7-iconv \
20
- php7-json \
21
- php7-mbstring \
22
- php7-openssl \
23
- php7-phar \
24
- php7-tokenizer \
25
- php7-xml \
26
- php7-xmlwriter \
27
- php7-dom \
28
- php7-pdo \
29
- ;
22
+ php \
23
+ php-iconv \
24
+ php-json \
25
+ php-mbstring \
26
+ php-openssl \
27
+ php-phar \
28
+ php-xml \
29
+ php-dom \
30
+ php-pdo \
31
+ ; ln -s /usr/bin/php7 /usr/bin/php
30
32
31
33
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
32
34
33
35
WORKDIR /opt/test
34
36
35
37
COPY --from=composer_install_requirements / .
36
38
37
- RUN composer install
39
+ RUN php7 /usr/bin/ composer install
38
40
39
41
COPY --from=test_source / .
40
42
You can’t perform that action at this time.
0 commit comments