Dockerfile
FROM golang:1.17 as builder ENV CGO_ENABLED=0ENV GO111MODULE=on RUN mkdir /buildWORKDIR /build COPY go.mod go.sum /build/RUN go mod download COPY . /build RUN curl -sL https://taskfile.dev/install.sh | sh RUN ./bin/task build FROM gcr.io/distroless/staticCOPY --from=builder /build/pomerium-operator /ENTRYPOINT ["/pomerium-operator"]