We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cad69a commit 8ae6c47Copy full SHA for 8ae6c47
cmd/heartbeat/Dockerfile.heartbeat
@@ -2,9 +2,10 @@
2
FROM golang:1.18.3-alpine3.16 AS build
3
RUN apk add git
4
ADD . /go/src/github.com/m-lab/locate
5
-RUN go install -v \
+WORKDIR /go/src/github.com/m-lab/locate
6
+RUN CGO_ENABLED=0 go install -v \
7
-ldflags "-X github.com/m-lab/go/prometheusx.GitShortCommit=$(git log -1 --format=%h)" \
- github.com/m-lab/locate/cmd/heartbeat@latest
8
+ ./cmd/heartbeat
9
10
# Now copy the resulting command into the minimal base image.
11
FROM alpine:3.16
0 commit comments