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

Use Docker's multi-stage builds #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ FROM golang:1.14-buster
ADD . /gh-action-detect-unmergeable/
WORKDIR /gh-action-detect-unmergeable/
RUN ["make", "build", "-j"]
ENTRYPOINT ["/gh-action-detect-unmergeable/ghaction_unmergeable_detection"]

FROM debian:buster-20200607-slim
WORKDIR /root/
COPY --from=builder /gh-action-detect-unmergeable/ghaction_unmergeable_detection .
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #90, I forgot this line

ENTRYPOINT ["/root/ghaction_unmergeable_detection"]