hydra-maester/Dockerfile

14 lines
355 B
Docker
Raw Normal View History

FROM golang:1.20 as builder
2021-11-30 11:31:19 +01:00
WORKDIR /go/src/app
COPY . .
RUN make manager
2019-08-21 10:12:07 +02:00
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
2021-11-30 11:31:19 +01:00
COPY --from=builder /go/src/app/manager .
USER 65532:65532
2019-08-21 10:12:07 +02:00
ENTRYPOINT ["/manager"]