From 8375d1066afb1af4ea3ee669c3f79abd4d80eb49 Mon Sep 17 00:00:00 2001 From: Joel Messerli <git@pegnu.dev> Date: Mon, 25 Sep 2023 23:20:43 +0200 Subject: [PATCH] fix(docker): add ca certificates --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 48b7eb2..7eab1fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,11 @@ COPY go.sum . RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o short . +RUN apk --no-cache add ca-certificates && update-ca-certificates FROM scratch WORKDIR /app/ COPY --from=builder /app/short . +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt EXPOSE 8080 CMD ["./short"] -- GitLab