From 50a77c96c06d48317e07e4b0a89d60837f38bd08 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 3 Aug 2026 20:08:09 -0400 Subject: [PATCH] fix: Dockerfile uses thevlang/vlang:alpine container (pre-built V) Building V from source on Alpine fails due to C function redefinition (musl libc). Use the official V Alpine container which has a pre-built, compatible V compiler. --- Dockerfile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4a3686..b81d490 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,12 @@ -# ── Build stage: compile ntfy-bridge from source ────────────────────────── -FROM alpine:3.20 AS builder - -RUN apk add --no-cache gcc musl-dev git make - -# 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 +# ── Build: use official V container to compile ──────────────────────────── +FROM thevlang/vlang:alpine AS builder # Copy project source and build WORKDIR /src COPY . . -RUN /opt/v/v -prod -o /ntfy-bridge . +RUN v -prod -o /ntfy-bridge . -# ── Runtime stage: minimal image ─────────────────────────────────────────── +# ── Runtime: minimal image ──────────────────────────────────────────────── FROM alpine:3.20 RUN apk add --no-cache ca-certificates tzdata curl