File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM php:8.1
1
+ FROM php:8.1-alpine
2
2
3
- RUN apt update && apt install -y git zip
3
+ RUN apk add -- update git zip && rm -rf /var/cache/apk/*
4
4
5
5
COPY --from=composer:2.4.0 /usr/bin/composer /usr/bin/composer
6
6
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ docker-pub-try:
85
85
-e GITHUB_GRAPHQL_URL=https://api.github.com/graphql \
86
86
-e GITHUB_REF_NAME=${MR_ID} /merge \
87
87
-e MR_LINTER_GITHUB_HTTP_TOKEN=${TOKEN} \
88
- -v " ${PWD} /.mr-linter.json :/app/.mr-linter.json :ro" \
88
+ -v " ${PWD} /.mr-linter.yml :/app/.mr-linter.yml :ro" \
89
89
artarts36/merge-request-linter:${MR_LINTER_VERSION} lint
90
90
91
91
docs :
Original file line number Diff line number Diff line change 1
- FROM php:8.1
1
+ FROM php:8.1-alpine
2
2
3
3
ARG MR_LINTER_VERSION
4
4
5
- RUN apt update && apt install -y tini
5
+ RUN apk add --update tini
6
6
7
7
RUN curl -L -f https://github.com/ArtARTs36/php-merge-request-linter/releases/download/${MR_LINTER_VERSION}/mr-linter.phar --output /usr/bin/mr-linter
8
8
@@ -14,4 +14,6 @@ RUN chmod +x /docker-entrypoint.sh
14
14
15
15
WORKDIR /app/
16
16
17
+ RUN rm -rf /var/cache/apk/*
18
+
17
19
ENTRYPOINT ["/docker-entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments