summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-12-08 03:21:22 +0100
committerMax Magorsch <arzano@gentoo.org>2020-12-08 03:21:22 +0100
commit6bd4d6599ace18a6ef27235ca79c16a25e572d58 (patch)
treec3919679267d894290c023bf47b4c3ca2d23e230 /Dockerfile
parentWait for postgres before starting (diff)
downloadgo-gentoo-6bd4d6599ace18a6ef27235ca79c16a25e572d58.tar.gz
go-gentoo-6bd4d6599ace18a6ef27235ca79c16a25e572d58.tar.bz2
go-gentoo-6bd4d6599ace18a6ef27235ca79c16a25e572d58.zip
Fix the missing certs in the Docker container
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'Dockerfile')
-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