infra/containers/traefik-forward-auth/Containerfile
Finn 747b041721
All checks were successful
/ build-keycloak (push) Successful in 47s
/ build-traefik-forward-auth (push) Successful in 1m7s
Use own Containerfile for traefik-forward-auth
2024-08-12 15:19:53 -07:00

10 lines
449 B
Docker

FROM library/golang:1.22 as builder
RUN git clone -b v2.3.0 https://github.com/thomseddon/traefik-forward-auth /go/traefik-forward-auth
WORKDIR /go/traefik-forward-auth
RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /traefik-forward-auth ./cmd
# Copy into scratch container
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /traefik-forward-auth ./
ENTRYPOINT ["./traefik-forward-auth"]