coverage/cmd/server/Dockerfile

11 lines
176 B
Docker

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