summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
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