-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a distroless build, made sure milla works with gvisor's runsc a…
…s the runtime
- Loading branch information
1 parent
7b66051
commit 2c02180
Showing
4 changed files
with
92 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:1.21 as builder | ||
WORKDIR /milla | ||
COPY go.sum go.mod /milla/ | ||
RUN go mod download | ||
COPY *.go /milla/ | ||
RUN CGO_ENABLED=0 go build | ||
|
||
FROM gcr.io/distroless/static-debian12 | ||
COPY --from=builder /milla/milla "/usr/bin/milla" | ||
ENTRYPOINT ["milla"] |
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
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
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