microservices-demo/src/currencyservicetemp/Dockerfile
Ahmet Alp Balkan fa46e85220 currencyservicefake: temp replacement for currencysvc
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 22:34:46 -07:00

13 lines
355 B
Docker

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