2023-03-27 11:34:35 -04:00
|
|
|
FROM golang:1.17 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:latest
|
2021-11-30 11:31:19 +01:00
|
|
|
COPY --from=builder /go/src/app/manager .
|
2019-08-30 10:23:03 +02:00
|
|
|
USER 1000
|
2019-08-21 10:12:07 +02:00
|
|
|
ENTRYPOINT ["/manager"]
|