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:
+4
-3
@@ -3,9 +3,10 @@ FROM alpine:3.20 AS builder
|
|||||||
|
|
||||||
RUN apk add --no-cache gcc musl-dev git make
|
RUN apk add --no-cache gcc musl-dev git make
|
||||||
|
|
||||||
# Build V from source
|
# Build V from source, pinned to V 0.5.2 commit
|
||||||
RUN git clone --depth 1 https://github.com/vlang/v /opt/v
|
RUN git clone https://github.com/vlang/v /opt/v
|
||||||
WORKDIR /opt/v
|
WORKDIR /opt/v
|
||||||
|
RUN git checkout 45ae01d23168b6372f734eeb38a77360bbcf184a
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
# Copy project source and build
|
# Copy project source and build
|
||||||
@@ -16,7 +17,7 @@ RUN /opt/v/v -prod -o /ntfy-bridge .
|
|||||||
# ── Runtime stage: minimal image ───────────────────────────────────────────
|
# ── Runtime stage: minimal image ───────────────────────────────────────────
|
||||||
FROM alpine:3.20
|
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
|
COPY --from=builder /ntfy-bridge /usr/local/bin/ntfy-bridge
|
||||||
|
|
||||||
WORKDIR /etc/ntfy-bridge
|
WORKDIR /etc/ntfy-bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user