We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ba2b1 commit 0973182Copy full SHA for 0973182
1 file changed
Dockerfile
@@ -1,9 +1,8 @@
1
FROM golang:1.11
2
-RUN go get -d -v github.com/rapidloop/pgmetrics
3
-RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /root/pgmetrics github.com/rapidloop/pgmetrics/cmd/pgmetrics
+RUN GO111MODULES=on CGO_ENABLED=0 GOOS=linux go get -a -installsuffix cgo github.com/rapidloop/pgmetrics/cmd/pgmetrics
4
5
FROM alpine:latest
6
RUN apk --no-cache add ca-certificates
7
-COPY --from=0 /root/pgmetrics /bin/pgmetrics
+COPY --from=0 /go/bin/pgmetrics /bin/pgmetrics
8
ENTRYPOINT ["/bin/pgmetrics"]
9
0 commit comments