Skip to content

Commit

Permalink
Resolved docker image cacerts by moving out of builder stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Shah Newaz Khan committed Nov 10, 2019
1 parent 79cacf4 commit af039b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3,452 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Expand Up @@ -47,10 +47,6 @@ RUN pip install awscli
RUN chmod +x /usr/local/bin/* && \
upx --lzma /usr/local/bin/*


RUN mkdir -p /home/certs/curl
COPY /certs/curl/cacert.pem /home/certs/curl/

WORKDIR tmp/commit0
COPY . .

Expand All @@ -61,16 +57,15 @@ RUN make build-deps && make build && \
FROM alpine:3.10
ENV \
PROTOBUF_VERSION=3.6.1-r1 \
GOPATH=/proto-libs \
CURL_CA_BUNDLE=/home/certs/curl/cacert.pem \
SSL_CERT_DIR=/home/certs/curl \
SSL_CERT_FILE=cacert.pem
GOPATH=/proto-libs

RUN apk add --update bash ca-certificates git python && \
apk add --update -t deps make py-pip

RUN mkdir ${GOPATH}
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /usr/local/include /usr/local/include
COPY --from=builder /go/src/github.com/grpc-ecosystem/grpc-gateway ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway
COPY --from=builder /home/certs/curl /home/certs/curl
WORKDIR /project
RUN apk add --update --no-cache make protobuf=${PROTOBUF_VERSION} && \
rm -rf /var/cache/apk/*
Expand Down
11 changes: 0 additions & 11 deletions certs/curl/README.md

This file was deleted.

0 comments on commit af039b4

Please sign in to comment.