Skip to content

Commit dbd37f4

Browse files
committed
reduced docker image size
1 parent 63e1a9a commit dbd37f4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM php:8.1
1+
FROM php:8.1-alpine
22

3-
RUN apt update && apt install -y git zip
3+
RUN apk add --update git zip && rm -rf /var/cache/apk/*
44

55
COPY --from=composer:2.4.0 /usr/bin/composer /usr/bin/composer
66

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ docker-pub-try:
8585
-e GITHUB_GRAPHQL_URL=https://api.github.com/graphql \
8686
-e GITHUB_REF_NAME=${MR_ID}/merge \
8787
-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" \
8989
artarts36/merge-request-linter:${MR_LINTER_VERSION} lint
9090

9191
docs:

dev/docker-pub/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM php:8.1
1+
FROM php:8.1-alpine
22

33
ARG MR_LINTER_VERSION
44

5-
RUN apt update && apt install -y tini
5+
RUN apk add --update tini
66

77
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
88

@@ -14,4 +14,6 @@ RUN chmod +x /docker-entrypoint.sh
1414

1515
WORKDIR /app/
1616

17+
RUN rm -rf /var/cache/apk/*
18+
1719
ENTRYPOINT ["/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)