VNOX-Server/Dockerfile
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

25 lines
962 B
Docker

# ─── 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-gateway
# ─── Stage 2: Runtime ─────────────────────────────────────────────────────────
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/target/release/vnox-gateway /usr/local/bin/vnox-gateway
EXPOSE 7600/tcp
ENTRYPOINT ["vnox-gateway"]