productcatalogservice: add Dockerfile

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-19 23:04:28 -07:00
parent 0cb633c4df
commit 810a74a463

View file

@ -0,0 +1,16 @@
FROM golang:1.10-alpine as builder
RUN apk add --no-cache \
ca-certificates \
git
WORKDIR /src/microservices-demo/productcatalogservice
COPY . .
RUN go get -d ./...
RUN go build -v -o /productcatalogservice .
FROM alpine as release
RUN apk add --no-cache \
ca-certificates
COPY --from=builder /productcatalogservice /productcatalogservice
EXPOSE 3550
ENTRYPOINT /productcatalogservice