File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM golang:1.19-alpine as build
33WORKDIR ${GOPATH}/src/github.com/quintoandar
44RUN apk update && apk add make git curl && git clone --branch main https://github.com/quintoandar/postgres_exporter.git
55WORKDIR ${GOPATH}/src/github.com/quintoandar/postgres_exporter
6+ ENV GOARCH=amd64
67RUN make release
78RUN chmod +x postgres_exporter && mv postgres_exporter /tmp/postgres_exporter
89
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ GO_BUILD_LDFLAGS = -X github.com/prometheus/common/version.Version=$(shell cat V
1414export PMM_RELEASE_PATH? =.
1515
1616release :
17- go build -ldflags=" $( GO_BUILD_LDFLAGS) " -o $(PMM_RELEASE_PATH ) /postgres_exporter ./cmd/postgres_exporter
17+ GOOS=linux go build -ldflags=" $( GO_BUILD_LDFLAGS) " -o $(PMM_RELEASE_PATH ) /postgres_exporter ./cmd/postgres_exporter
You can’t perform that action at this time.
0 commit comments