Files
bruno 1c847a824d
CI / test (push) Successful in 2m45s
fix: Dockerfile → COPY pre-built binary (no network needed)
Docker Desktop Windows blocks build network access. Instead of
building V from source inside Docker, cross-compile Linux binary
on host and COPY into minimal alpine image.
2026-08-03 20:26:02 -04:00

18 lines
664 B
Docker

# ── Minimal Docker image for ntfy-bridge ──────────────────────────────────
# Binary is built on the host: v -os linux -o ntfy-bridge .
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata curl
COPY ntfy-bridge /usr/local/bin/ntfy-bridge
RUN chmod +x /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"]