productcatalogservice: add Dockerfile
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
0cb633c4df
commit
810a74a463
1 changed files with 16 additions and 0 deletions
16
src/productcatalogservice/Dockerfile
Normal file
16
src/productcatalogservice/Dockerfile
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue