-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
30 lines (20 loc) · 1.04 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
FROM php:8.3-cli-alpine as build
RUN apk add git # required for box to detect the version
RUN apk add --update icu-dev && docker-php-ext-install -j$(nproc) intl # related to https://github.com/box-project/box/issues/516
COPY --from=composer:2.6.5 /usr/bin/composer /usr/bin/composer
WORKDIR /usr/src/app
ADD . /usr/src/app
RUN composer install --classmap-authoritative --no-interaction --no-dev --optimize-autoloader
ADD https://github.com/humbug/box/releases/download/4.5.1/box.phar ./box.phar
RUN php box.phar compile
FROM php:8.3-cli-alpine
LABEL "com.github.actions.name"="DOCtor-RST"
LABEL "com.github.actions.description"="check *.rst files against given rules"
LABEL "com.github.actions.icon"="check"
LABEL "com.github.actions.color"="blue"
LABEL "repository"="http://github.com/oskarstark/doctor-rst"
LABEL "homepage"="http://github.com/actions"
LABEL "maintainer"="Oskar Stark <oskarstark@googlemail.com>"
COPY --from=build /usr/src/app/bin/doctor-rst.phar /usr/bin/doctor-rst
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]