From d4414ae38884364bf070afe7fd4ae46190dab71f Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 4 Dec 2025 08:52:00 -0800 Subject: [PATCH] Dockerfile: update git Apparently the old version isn't even available in the package server anymore? That's pretty annoying, and kinda makes me question pinning the version. For now, I'll just bump it, but might just need to drop it entirely and take the latest version. We're not using it for much anyway. Also fix a few Dockerfile linting issues. Updates #cleanup Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c7b4e2b..3767f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ ARG GO_VERSION=1.25 -FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine as build +FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine AS build WORKDIR /work # Install git so that go build populates the VCS details in build info, which # is then reported to Tailscale in the node version string. -RUN apk --no-cache add git=2.49.1-r0 +RUN apk --no-cache add git=2.52.0-r0 COPY go.mod go.sum ./ RUN go mod download @@ -31,8 +31,8 @@ COPY --from=build /work/caddy /usr/bin/caddy COPY examples/simple.caddyfile /etc/caddy/Caddyfile # See https://caddyserver.com/docs/conventions#file-locations for details -ENV XDG_CONFIG_HOME /config -ENV XDG_DATA_HOME /data +ENV XDG_CONFIG_HOME=/config +ENV XDG_DATA_HOME=/data EXPOSE 80 EXPOSE 443