14 lines
187 B
Docker
14 lines
187 B
Docker
FROM golang:latest as builder
|
|
|
|
WORKDIR /src
|
|
|
|
RUN go get -u ./...
|
|
RUN go build
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /
|
|
COPY --from=builder /src/weatherservice .
|
|
EXPOSE 8080
|
|
|
|
CMD ["/weatherservice"]
|