2024-09-08 06:02:16 +00:00
|
|
|
FROM library/golang:1.23 as builder
|
2024-08-12 22:19:53 +00:00
|
|
|
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"]
|