Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 57f2346

Browse files
Use Docker's multi-stage builds
1 parent 6d1404a commit 57f2346

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ FROM golang:1.14-buster
22
ADD . /gh-action-detect-unmergeable/
33
WORKDIR /gh-action-detect-unmergeable/
44
RUN ["make", "build", "-j"]
5-
ENTRYPOINT ["/gh-action-detect-unmergeable/ghaction_unmergeable_detection"]
5+
6+
FROM debian:buster-20200607-slim
7+
WORKDIR /root/
8+
COPY --from=builder /gh-action-detect-unmergeable/ghaction_unmergeable_detection .
9+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
10+
ENTRYPOINT ["/root/ghaction_unmergeable_detection"]

0 commit comments

Comments
 (0)