FROM golang:1.14.2 AS build
WORKDIR /root/
COPY . .
RUN go build -o Status .
FROM golang:1.14.2
COPY --from=build /root/Status .
EXPOSE 8080
CMD ["./Status"]