ingress-nginx-helm/images/ext-auth-example-authsvc/rootfs/Dockerfile
James Strong 208ea484a8 revert golang 1.21.5 and alpine 3.19 not available yet
Signed-off-by: James Strong <strong.james.e@gmail.com>
2023-12-08 14:43:21 -05:00

10 lines
260 B
Docker

FROM golang:1.21.5-alpine3.18 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"]