hf-realtime-voice / Dockerfile
andito's picture
andito HF Staff
Upgrade to the Agents SDK realtime client
399d582
Raw History Blame Contribute Delete
607 Bytes
FROM node:24-slim AS agents-sdk
WORKDIR /sdk
COPY package.json package-lock.json .npmrc ./
RUN npm ci --omit=dev
# Single runtime container: serves the static front-end AND API proxies.
# HF Spaces (sdk: docker) routes traffic to $PORT, default 7860.
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY --from=agents-sdk /sdk/node_modules/@openai/agents-realtime/dist/bundle/openai-realtime-agents.umd.js /app/vendor/openai-realtime-agents.umd.js
EXPOSE 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]