infra/containers/traefik-forward-auth/Containerfile
Renovate Bot a8da55a6b3
All checks were successful
/ build-traefik-forward-auth (push) Successful in 1m5s
/ build-openbao (push) Successful in 10m17s
chore(deps): update golang docker tag to v1.23
2024-09-08 06:02:16 +00:00

10 lines
449 B
Docker

FROM library/golang:1.23 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"]