From b14a628da0416538024eccd8a06afdcca8ed86e5 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 13 May 2024 19:33:15 -0400 Subject: added a vendored build of milla with docker --- Dockerfile_distroless_vendored | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile_distroless_vendored (limited to 'Dockerfile_distroless_vendored') diff --git a/Dockerfile_distroless_vendored b/Dockerfile_distroless_vendored new file mode 100644 index 0000000..6c84307 --- /dev/null +++ b/Dockerfile_distroless_vendored @@ -0,0 +1,10 @@ +FROM golang:1.21 as builder +WORKDIR /milla +COPY go.sum go.mod /milla/ +COPY vendor /milla/vendor +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