diff options
Diffstat (limited to 'hived/Dockerfile_distroless')
-rw-r--r-- | hived/Dockerfile_distroless | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hived/Dockerfile_distroless b/hived/Dockerfile_distroless new file mode 100644 index 0000000..c21dd2d --- /dev/null +++ b/hived/Dockerfile_distroless @@ -0,0 +1,9 @@ +FROM golang:1.22-alpine3.20 as builder +COPY go.* /hived/ +RUN cd /hived && go mod download +COPY *.go /hived/ +RUN cd /hived && go build + +FROM gcr.io/distroless/static-debian12 +COPY --from=builder /hived/hived "/usr/bin/hived" +ENTRYPOINT ["hived"] |