microservices-demo/src/shippingservice/Dockerfile
Ahmet Alp Balkan 2d4f4f884a shippingservice: minify dockerfile, unify genproto
also fixed a bug causing non-letter chars in tracking ID.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-19 23:04:53 -07:00

14 lines
339 B
Docker

FROM golang:1.10-alpine as builder
RUN apk add --no-cache \
ca-certificates \
git
WORKDIR /src/microservices-demo/shippingservice
COPY . .
RUN go get -d ./...
RUN go build -v -o /shippingservice .
FROM alpine as release
COPY --from=builder /shippingservice /shippingservice
ENV APP_PORT=50051
EXPOSE 50051
ENTRYPOINT /shippingservice