25dd31952c
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
13 lines
350 B
Docker
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"]
|