VNOX-Server/Dockerfile.voice-node
loki5512344 e751e0bf5b Initial commit: split VNOX monorepo into VNOX-Server
Unified server binary (vnox-serverd) combining:
- Gateway (TCP, auth, channels, sessions, SQLite)
- Voice-node (UDP relay, Opus, jitter buffer)

Standalone gateway (vnox-gateway) and voice-node (vnox-voice-node) preserved as sub-crates.
2026-07-09 11:52:56 +02:00

21 lines
849 B
Text

# ─── Stage 1: Build ───────────────────────────────────────────────────────────
FROM rust:1.85-slim-bookworm AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends \
pkg-config libssl-dev libopus-dev cmake && \
rm -rf /var/lib/apt/lists/*
WORKDIR /build
COPY . .
RUN cargo build --release --package vnox-voice-node
# ─── Stage 2: Runtime ─────────────────────────────────────────────────────────
FROM debian:bookworm-slim
COPY --from=builder /build/target/release/vnox-voice-node /usr/local/bin/vnox-voice-node
EXPOSE 7700/udp
ENTRYPOINT ["vnox-voice-node"]