From e5eb4125af32cecc16527a8c50751ba499285b26 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 3 Aug 2026 20:03:56 -0400 Subject: [PATCH] fix: Dockerfile pin V to 0.5.2 commit (not latest) V latest (git clone --depth 1) has incompatible APIs with the source code written for V 0.5.2. Pin to exact commit 45ae01d to match local dev environment. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c11224..b4a3686 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ FROM alpine:3.20 AS builder RUN apk add --no-cache gcc musl-dev git make -# Build V from source -RUN git clone --depth 1 https://github.com/vlang/v /opt/v +# Build V from source, pinned to V 0.5.2 commit +RUN git clone https://github.com/vlang/v /opt/v WORKDIR /opt/v +RUN git checkout 45ae01d23168b6372f734eeb38a77360bbcf184a RUN make # Copy project source and build @@ -16,7 +17,7 @@ RUN /opt/v/v -prod -o /ntfy-bridge . # ── Runtime stage: minimal image ─────────────────────────────────────────── FROM alpine:3.20 -RUN apk add --no-cache ca-certificates tzdata +RUN apk add --no-cache ca-certificates tzdata curl COPY --from=builder /ntfy-bridge /usr/local/bin/ntfy-bridge WORKDIR /etc/ntfy-bridge