-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 885 Bytes
/
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
FROM alpine:3.13
RUN apk add --no-cache php7 php7-xml php7-simplexml php7-zip php7-openssl php7-phar php7-json php7-iconv \
zip npm bash && \
\
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php --install-dir=/usr/bin --filename=composer && \
php -r "unlink('composer-setup.php');" && \
\
mkdir /coverage
COPY package.json /coverage/package.json
COPY composer.json /coverage/composer.json
COPY lib /coverage/lib
COPY fix.php /coverage/fix.php
COPY action.sh /coverage/action.sh
COPY encrypt.js /coverage/encrypt.js
COPY template.html /coverage/template.html
RUN cd /coverage && \
npm install && \
\
composer validate && \
composer install --prefer-dist --no-progress --no-dev && \
\
chmod u+x /coverage/action.sh
ENTRYPOINT [ "/coverage/action.sh" ]