aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile_distroless_vendored
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-05-13 23:33:15 +0000
committerterminaldweller <devi@terminaldweller.com>2024-05-13 23:33:15 +0000
commitb14a628da0416538024eccd8a06afdcca8ed86e5 (patch)
treec7e18a74d035a5158d46f83d14b2e7f1e01e7932 /Dockerfile_distroless_vendored
parentadded a distroless build, made sure milla works with gvisor's runsc as the ru... (diff)
downloadmilla-b14a628da0416538024eccd8a06afdcca8ed86e5.tar.gz
milla-b14a628da0416538024eccd8a06afdcca8ed86e5.zip
added a vendored build of milla with docker
Diffstat (limited to 'Dockerfile_distroless_vendored')
-rw-r--r--Dockerfile_distroless_vendored10
1 files changed, 10 insertions, 0 deletions
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"]