fix: livekit.yaml config (remove invalid bind_addr field)
This commit is contained in:
+17
-23
@@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY agent/pyproject.toml ./agent/
|
COPY agent/pyproject.toml ./agent/
|
||||||
RUN mkdir -p /app/agent && cd /app/agent && \
|
RUN cd /app/agent && \
|
||||||
uv venv .venv && \
|
uv venv .venv && \
|
||||||
uv pip install --python .venv/bin/python \
|
uv pip install --python .venv/bin/python \
|
||||||
"livekit-agents~=1.7" \
|
"livekit-agents~=1.7" \
|
||||||
@@ -22,20 +22,23 @@ RUN mkdir -p /app/agent && cd /app/agent && \
|
|||||||
"livekit-plugins-openai~=1.7" \
|
"livekit-plugins-openai~=1.7" \
|
||||||
"python-dotenv"
|
"python-dotenv"
|
||||||
|
|
||||||
# ── Stage 2: Runtime ───────────────────────────────────────────────────────
|
# ── Stage 2: Runtime (use same base for Python compat) ─────────────────────
|
||||||
FROM debian:bookworm-slim AS runtime
|
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS runtime
|
||||||
|
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
# Install LiveKit server binary + supervisord + nginx
|
# Install LiveKit server binary + supervisord + nginx
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl ca-certificates supervisor nginx python3.12 python3.12-venv \
|
curl ca-certificates supervisor nginx libasound2 \
|
||||||
libasound2t64 libssl3t64 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Download LiveKit server (latest stable)
|
# Download LiveKit server (latest stable)
|
||||||
ARG LIVEKIT_VERSION=v1.13.2
|
ARG LIVEKIT_VERSION=v1.13.5
|
||||||
RUN curl -sSL "https://github.com/livekit/livekit/releases/download/${LIVEKIT_VERSION}/livekit_${LIVEKIT_VERSION}_linux_amd64.tar.gz" \
|
ARG LIVEKIT_TAG=1.13.5
|
||||||
| tar xz -C /usr/local/bin/ livekit \
|
RUN curl -sSL "https://github.com/livekit/livekit/releases/download/${LIVEKIT_VERSION}/livekit_${LIVEKIT_TAG}_linux_amd64.tar.gz" \
|
||||||
&& chmod +x /usr/local/bin/livekit
|
| tar xz -C /usr/local/bin/ livekit-server \
|
||||||
|
&& chmod +x /usr/local/bin/livekit-server \
|
||||||
|
&& ln -sf /usr/local/bin/livekit-server /usr/local/bin/livekit
|
||||||
|
|
||||||
# Copy Python agent + venv from build stage
|
# Copy Python agent + venv from build stage
|
||||||
COPY --from=build /app/agent/.venv /opt/voice-agent/.venv
|
COPY --from=build /app/agent/.venv /opt/voice-agent/.venv
|
||||||
@@ -48,23 +51,14 @@ COPY web/ /var/www/voice/
|
|||||||
COPY livekit.yaml /etc/livekit.yaml
|
COPY livekit.yaml /etc/livekit.yaml
|
||||||
COPY supervisord.conf /etc/supervisor/conf.d/voice.conf
|
COPY supervisord.conf /etc/supervisor/conf.d/voice.conf
|
||||||
|
|
||||||
# Remove default nginx site, use our own
|
# Configure nginx to serve the voice UI on port 8090
|
||||||
RUN rm -f /etc/nginx/sites-enabled/default && \
|
RUN rm -f /etc/nginx/sites-enabled/default \
|
||||||
cat > /etc/nginx/sites-available/voice << 'NGINX'
|
&& printf 'server {\n listen 8090;\n root /var/www/voice;\n index index.html;\n location / {\n try_files $uri $uri/ =404;\n }\n}\n' \
|
||||||
server {
|
> /etc/nginx/sites-available/voice \
|
||||||
listen 8090;
|
|
||||||
root /var/www/voice;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NGINX
|
|
||||||
&& ln -sf /etc/nginx/sites-available/voice /etc/nginx/sites-enabled/voice
|
&& ln -sf /etc/nginx/sites-available/voice /etc/nginx/sites-enabled/voice
|
||||||
|
|
||||||
# Create non-root user for agent
|
# Create non-root user for agent
|
||||||
RUN useradd -m -s /bin/bash voiceuser
|
RUN useradd -m -s /bin/bash voiceuser || true
|
||||||
|
|
||||||
EXPOSE 7880 7881 8090 50000-60000/udp
|
EXPOSE 7880 7881 8090 50000-60000/udp
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
port: 7880
|
port: 7880
|
||||||
bind_addr: 0.0.0.0
|
|
||||||
|
|
||||||
rtc:
|
rtc:
|
||||||
tcp_port: 7881
|
tcp_port: 7881
|
||||||
udp_port: 7882
|
udp_port: 7882
|
||||||
port_range_start: 50000
|
port_range_start: 50000
|
||||||
port_range_end: 60000
|
port_range_end: 60000
|
||||||
# Leave empty to use host's public IP for TURN (LAN access)
|
|
||||||
# For LAN-only, this is fine — clients connect directly
|
|
||||||
|
|
||||||
keys:
|
keys:
|
||||||
devkey: devsecret
|
devkey: devsecret
|
||||||
|
|
||||||
redis:
|
|
||||||
# No Redis — single node, in-memory room state
|
|
||||||
|
|||||||
Reference in New Issue
Block a user