shippingservice: add ca-certificates to image

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-13 16:17:47 -07:00
parent 53da3583e4
commit a3740aa7b5
2 changed files with 2 additions and 2 deletions

View file

@ -17,8 +17,7 @@ RUN go get -d ./...
RUN go build -o /productcatalogservice . RUN go build -o /productcatalogservice .
FROM alpine as release FROM alpine as release
RUN apk add --no-cache \ RUN apk add --no-cache ca-certificates
ca-certificates
COPY --from=builder /productcatalogservice /productcatalogservice COPY --from=builder /productcatalogservice /productcatalogservice
EXPOSE 3550 EXPOSE 3550
ENTRYPOINT ["/productcatalogservice"] ENTRYPOINT ["/productcatalogservice"]

View file

@ -17,6 +17,7 @@ RUN go get -d ./...
RUN go build -o /shippingservice . RUN go build -o /shippingservice .
FROM alpine as release FROM alpine as release
RUN apk add --no-cache ca-certificates
COPY --from=builder /shippingservice /shippingservice COPY --from=builder /shippingservice /shippingservice
ENV APP_PORT=50051 ENV APP_PORT=50051
EXPOSE 50051 EXPOSE 50051