StatusApp/Dockerfile

11 lines
174 B
Docker

2020-04-21 13:32:49 +07:00
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
2020-04-21 14:27:27 +07:00
CMD ["./Status"]