diff options
author | 2020-12-08 03:21:22 +0100 | |
---|---|---|
committer | 2020-12-08 03:21:22 +0100 | |
commit | 6bd4d6599ace18a6ef27235ca79c16a25e572d58 (patch) | |
tree | c3919679267d894290c023bf47b4c3ca2d23e230 | |
parent | Wait for postgres before starting (diff) | |
download | go-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>
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |