From 2c02180d2bb6d74c03a967595bbf5a414a86aa75 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 13 May 2024 19:23:01 -0400 Subject: added a distroless build, made sure milla works with gvisor's runsc as the runtime --- Dockerfile_distroless | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile_distroless (limited to 'Dockerfile_distroless') diff --git a/Dockerfile_distroless b/Dockerfile_distroless new file mode 100644 index 0000000..5b7401b --- /dev/null +++ b/Dockerfile_distroless @@ -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"] -- cgit v1.2.3