microservices-demo/src/checkoutservice/Dockerfile
Ahmet Alp Balkan 25dd31952c checkoutservice: change port to 5050
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:07:08 -07:00

13 lines
350 B
Docker

FROM golang:1.10-alpine as builder
RUN apk add --no-cache ca-certificates git
WORKDIR /src/microservices-demo/catalogservice
COPY . .
RUN go get -d ./...
RUN go build -o /catalogservice .
FROM alpine as release
RUN apk add --no-cache \
ca-certificates
COPY --from=builder /catalogservice /catalogservice
EXPOSE 5050
ENTRYPOINT ["/catalogservice"]