Files
ntfy-bridge/Dockerfile
T
bruno 5b0b580792
CI / test (push) Successful in 2m31s
fix: add yaml dependency to v.mod + Dockerfile v install yaml
The thevlang/vlang:alpine container doesn't include the yaml
module. Added it as a declared dependency and install step.
2026-08-03 20:13:26 -04:00

24 lines
886 B
Docker

# ── Build: use official V container to compile ────────────────────────────
FROM thevlang/vlang:alpine AS builder
# Copy project source and build
WORKDIR /src
COPY . .
RUN v install yaml
RUN v -prod -o /ntfy-bridge .
# ── Runtime: minimal image ────────────────────────────────────────────────
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata curl
COPY --from=builder /ntfy-bridge /usr/local/bin/ntfy-bridge
WORKDIR /etc/ntfy-bridge
EXPOSE 9090
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:9090/health || exit 1
ENTRYPOINT ["/usr/local/bin/ntfy-bridge"]
CMD ["--quiet", "--config", "/etc/ntfy-bridge/ntfy-bridge.yaml"]