Skip to content

Commit

Permalink
🐛 revert Dockerfile changes (charlie-haley#78)
Browse files Browse the repository at this point in the history
The release is being blocked as GoReleaser isn't happy with the Dockerfile changes when running the deployment.
  • Loading branch information
charlie-haley authored Aug 8, 2023
1 parent 68763d2 commit f4265e8
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit f4265e8

Please sign in to comment.