From f4265e8b442a52cf7bcc69a5f3aae6fe6a1eb5ab Mon Sep 17 00:00:00 2001 From: Charlie Haley Date: Tue, 8 Aug 2023 10:28:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20revert=20Dockerfile=20changes=20?= =?UTF-8?q?(#78)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release is being blocked as GoReleaser isn't happy with the Dockerfile changes when running the deployment. --- Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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"]