Fix missing CA Authorities in scratch image

This commit is contained in:
Noah 2024-12-20 02:22:30 +01:00
parent 3ec330e3a2
commit b3caf8d8bf

View file

@ -2,6 +2,8 @@ FROM golang:alpine AS builder
WORKDIR /tmp/build
RUN apk update && apk add --no-cache ca-certificates
COPY . .
RUN go mod download
RUN go build -o /tmp/build/bin/steamsalty
@ -11,6 +13,7 @@ RUN go build -o /tmp/build/bin/steamsalty
FROM scratch
WORKDIR /app
COPY --from=builder /tmp/build/bin/steamsalty /app/steamsalty
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
ENTRYPOINT ["/app/steamsalty"]