microservices-demo/src/checkoutservice/Dockerfile

14 lines
350 B
Text
Raw Normal View History

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"]