Skip to content

Commit e0f6d74

Browse files
committed
chore: fix os
1 parent 4aa5c37 commit e0f6d74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM golang:1.19-alpine as build
33
WORKDIR ${GOPATH}/src/github.com/quintoandar
44
RUN apk update && apk add make git curl && git clone --branch main https://github.com/quintoandar/postgres_exporter.git
55
WORKDIR ${GOPATH}/src/github.com/quintoandar/postgres_exporter
6+
ENV GOARCH=amd64
67
RUN make release
78
RUN chmod +x postgres_exporter && mv postgres_exporter /tmp/postgres_exporter
89

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ GO_BUILD_LDFLAGS = -X github.com/prometheus/common/version.Version=$(shell cat V
1414
export PMM_RELEASE_PATH?=.
1515

1616
release:
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

0 commit comments

Comments
 (0)