forked from vmware-archive/eventrouter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mwennrich/distroless
create distroless image
- Loading branch information
Showing
5 changed files
with
107 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
FROM golang:1.18-alpine as builder | ||
RUN apk add make binutils | ||
FROM golang:1.18 as builder | ||
ENV GO111MODULE=on | ||
ENV CGO_ENABLED=0 | ||
|
||
COPY / /work | ||
WORKDIR /work | ||
RUN make eventrouter | ||
|
||
FROM alpine:3.16 | ||
FROM scratch | ||
COPY --from=builder /work/bin/eventrouter /eventrouter | ||
USER root | ||
USER 1000 | ||
ENTRYPOINT ["/eventrouter"] | ||
|
||
EXPOSE 9080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.