ingress-nginx-helm/images/ext-auth-example-authsvc/rootfs/Dockerfile
James Strong 5d82d18350 missed some
Signed-off-by: James Strong <strong.james.e@gmail.com>
2023-12-08 14:37:20 -05:00

10 lines
261 B
Docker

FROM golang:1.21.5-alpine:3.19 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"]