From b3caf8d8bfc3d7e843c74d63319bcb30e0f410ce Mon Sep 17 00:00:00 2001 From: Noah Theus Date: Fri, 20 Dec 2024 02:22:30 +0100 Subject: [PATCH] Fix missing CA Authorities in scratch image --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a72a7e1..d22d8c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file