StatusApp/Dockerfile

11 lines
174 B
Docker

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