Skip to content

Commit

Permalink
feat: add ca-certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelblijleven committed Jan 13, 2022
1 parent b9596cc commit b0b95ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .


FROM ubuntu:latest

WORKDIR /root/

RUN apt-get update
RUN apt-get install ca-certificates -y

COPY --from=builder /app/main .
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /usr/local/share/ca-certificates

RUN update-ca-certificates

ENTRYPOINT ["./main"]

0 comments on commit b0b95ac

Please sign in to comment.