ingress-nginx-helm/images/ext-auth-example-authsvc/rootfs/Dockerfile
k8s-infra-cherrypick-robot 0d98a278b7
Images: Bump Alpine to v3.21. (#12528)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
2024-12-21 00:52:10 +01:00

12 lines
291 B
Docker

ARG GOLANG_VERSION
FROM golang:${GOLANG_VERSION}-alpine3.21 as builder
RUN mkdir /authsvc
WORKDIR /authsvc
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o authsvc authsvc.go
FROM gcr.io/distroless/base-debian11
COPY --from=builder /authsvc/authsvc /
EXPOSE 8080
ENTRYPOINT ["/authsvc"]