Download Dockerfile from githubtailscaleduplicity342/hf-realtime-voice: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/githubtailscaleduplicity342/hf-realtime-voice/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/githubtailscaleduplicity342/hf-realtime-voice/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/githubtailscaleduplicity342/hf-realtime-voice/resolve/main/Dockerfile
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"] | |