11 lines
449 B
Text
11 lines
449 B
Text
|
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"]
|