Skip to content

Commit 854eae0

Browse files
authored
Dockerfile: install git to populate node version string (#141)
Without the git CLI, `go build` will not produce the embedded VCS metadata that's used to report the commit hash in node version string. This fixes the `1.72.1-ERR-BuildInfo` version string reported to Tailscale. Fixes #140 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
1 parent 08da6ba commit 854eae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM --platform=$BUILDPLATFORM golang:1.23-alpine as build
22

33
WORKDIR /work
44

5+
# Install git so that go build populates the VCS details in build info, which
6+
# is then reported to Tailscale in the node version string.
7+
RUN apk add git
8+
59
COPY go.mod go.sum ./
610
RUN go mod download
711

0 commit comments

Comments
 (0)