diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-05-13 23:23:01 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-05-13 23:23:01 +0000 |
commit | 2c02180d2bb6d74c03a967595bbf5a414a86aa75 (patch) | |
tree | fcc9c73be09b3aa95ac48984378ccaafe44413e9 /Dockerfile_distroless | |
parent | updated the readme, added example config file (diff) | |
download | milla-2c02180d2bb6d74c03a967595bbf5a414a86aa75.tar.gz milla-2c02180d2bb6d74c03a967595bbf5a414a86aa75.zip |
added a distroless build, made sure milla works with gvisor's runsc as the runtime
Diffstat (limited to '')
-rw-r--r-- | Dockerfile_distroless | 10 |
1 files changed, 10 insertions, 0 deletions
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"] |