2018-06-21 19:15:53 +00:00
|
|
|
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 ./...
|
2018-06-21 19:40:07 +00:00
|
|
|
RUN go build -o /catalogservice .
|
2018-06-21 19:15:53 +00:00
|
|
|
|
|
|
|
FROM alpine as release
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates
|
|
|
|
COPY --from=builder /catalogservice /catalogservice
|
2018-06-21 21:07:08 +00:00
|
|
|
EXPOSE 5050
|
2018-06-21 19:42:14 +00:00
|
|
|
ENTRYPOINT ["/catalogservice"]
|