WeatherService/Dockerfile

15 lines
211 B
Docker

FROM golang:latest as builder
ENV GO111MODULE=on
WORKDIR /src
RUN cd /src
RUN go get -u
RUN go build
FROM alpine:latest
WORKDIR /
COPY --from=builder /src/weatherservice .
EXPOSE 8080
CMD ["/weatherservice"]