From 6bd4d6599ace18a6ef27235ca79c16a25e572d58 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Tue, 8 Dec 2020 03:21:22 +0100 Subject: Fix the missing certs in the Docker container Signed-off-by: Max Magorsch --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 92f4fed..ce39213 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM golang:1.14.0 AS builder +RUN apk --no-cache add ca-certificates WORKDIR /go/src/go-gentoo COPY . /go/src/go-gentoo RUN go get github.com/go-pg/pg/v9 @@ -7,6 +8,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . FROM scratch WORKDIR /go/src/go-gentoo +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /go/src/go-gentoo/assets /go/src/go-gentoo/assets COPY --from=builder /go/src/go-gentoo/bin /go/src/go-gentoo/bin COPY --from=builder /go/src/go-gentoo/pkg /go/src/go-gentoo/pkg -- cgit v1.2.3-65-gdbad