diff --git a/Dockerfile b/Dockerfile index 2493e79..2d70db9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,5 @@ -FROM golang:alpine3.14 AS build +FROM golang:alpine3.14 -WORKDIR /src -COPY go.mod ./ -COPY go.sum ./ -RUN go mod download -COPY main.go ./ -COPY cmd ./cmd -COPY pkg ./pkg -RUN go build -o /omada-exporter +COPY omada-exporter /usr/bin/omada-exporter -FROM golang:alpine3.14 -COPY --from=build /omada-exporter /omada-exporter -CMD "/omada-exporter" +CMD ["/usr/bin/omada-exporter"]