2d4f4f884a
also fixed a bug causing non-letter chars in tracking ID. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
14 lines
339 B
Docker
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
|