fix: Dockerfile pin V to 0.5.2 commit (not latest)
CI / test (push) Successful in 3m50s

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.
This commit is contained in:
2026-08-03 20:03:56 -04:00
parent 4fbac2121a
commit e5eb4125af
+4 -3
View File
@@ -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