ingress-nginx-helm/images/ext-auth-example-authsvc/rootfs/Dockerfile

13 lines
291 B
Docker
Raw Normal View History

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
2024-08-05 15:26:59 +00:00
ENTRYPOINT ["/authsvc"]