hydra-maester/Dockerfile
2023-03-27 17:34:35 +02:00

12 lines
336 B
Docker

FROM golang:1.17 as builder
WORKDIR /go/src/app
COPY . .
RUN make manager
# 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:latest
COPY --from=builder /go/src/app/manager .
USER 1000
ENTRYPOINT ["/manager"]