Skip to content

Commit

Permalink
Merge pull request #15 from grafana/multi-stage-docker-image
Browse files Browse the repository at this point in the history
Enable multi-stage-builds
  • Loading branch information
jotdl authored Apr 25, 2024
2 parents 6a9b9b5 + c1dc9a2 commit 78c22d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.ic-assignment
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ WORKDIR /src
COPY . /src
RUN go build -o /ic-assignment /src/cmd/ic-assignment

FROM scratch
COPY --from=build /ic-assignment /ic-assignment
ENTRYPOINT ["/ic-assignment"]
2 changes: 2 additions & 0 deletions Dockerfile.regex-labeler
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ WORKDIR /src
COPY . /src
RUN go build -o /regex-labeler /src/cmd/regex-labeler

FROM scratch
COPY --from=build /regex-labeler /regex-labeler
ENTRYPOINT ["/regex-labeler"]

0 comments on commit 78c22d5

Please sign in to comment.