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