Skip to content

Commit

Permalink
Merge pull request #6 from starkpl/master
Browse files Browse the repository at this point in the history
Add CA certificates to docker image
  • Loading branch information
sergiorua authored Feb 25, 2020
2 parents 090b81f + e1c28cb commit a34558c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ WORKDIR $GOPATH/src/github.com/sergiorua/kube-tagger

RUN GO111MODULE=on go build main.go && ls -l && echo $GOPATH

FROM debian:buster as ca-store
RUN apt-get update && apt-get install -y ca-certificates

FROM debian:buster
RUN mkdir /app
COPY --from=builder /go/src/github.com/sergiorua/kube-tagger/main /app/
COPY --from=ca-store /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /app
CMD ["./main"]

0 comments on commit a34558c

Please sign in to comment.