WeatherService/Dockerfile

14 lines
199 B
Docker
Raw Normal View History

2020-07-20 20:03:08 +02:00
FROM golang:latest as builder
2020-07-20 20:33:31 +02:00
2020-07-20 20:40:03 +02:00
ENV GO111MODULE=on
2020-07-20 20:33:31 +02:00
WORKDIR /src
2020-07-20 18:06:32 +02:00
2020-07-20 20:56:57 +02:00
RUN go get -u
2020-07-20 20:31:18 +02:00
RUN go build
2020-07-20 19:42:18 +02:00
2020-07-20 20:03:08 +02:00
FROM alpine:latest
WORKDIR /
2020-07-20 20:33:31 +02:00
COPY --from=builder /src/weatherservice .
2020-07-20 20:03:08 +02:00
EXPOSE 8080
2020-07-20 18:06:32 +02:00
2020-07-20 20:56:57 +02:00
CMD ["/weatherservice"]