fix: Dockerfile uses thevlang/vlang:alpine container (pre-built V)
CI / test (push) Successful in 2m35s

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.
This commit is contained in:
2026-08-03 20:08:09 -04:00
parent e5eb4125af
commit 50a77c96c0
+4 -12
View File
@@ -1,20 +1,12 @@
# ── Build stage: compile ntfy-bridge from source ────────────────────────── # ── Build: use official V container to compile ────────────────────────────
FROM alpine:3.20 AS builder FROM thevlang/vlang:alpine 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
# Copy project source and build # Copy project source and build
WORKDIR /src WORKDIR /src
COPY . . 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 FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata curl RUN apk add --no-cache ca-certificates tzdata curl