Spaces:
Paused
Paused
Download examples/voice_agent_multi_thread/ui/Dockerfile from nvidia/voice-agent-examples: direct link, hf CLI and curl.
- Browser
- Download file 935 Bytes
-
https://huggingface.co/spaces/nvidia/voice-agent-examples/resolve/main/examples/voice_agent_multi_thread/ui/Dockerfile
- Command line
-
hf download hf://spaces/nvidia/voice-agent-examples/examples/voice_agent_multi_thread/ui/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nvidia/voice-agent-examples/resolve/main/examples/voice_agent_multi_thread/ui/Dockerfile
935 Bytes
| # SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: BSD 2-Clause License | |
| # Build stage | |
| FROM node:18-alpine AS builder | |
| # Image metadata | |
| LABEL stage="builder" | |
| LABEL description="UI build environment" | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY ui/package*.json ./ | |
| RUN npm ci --frozen-lockfile \ | |
| && npm cache clean --force | |
| # Copy source code and build | |
| COPY ui/ . | |
| RUN npm run build \ | |
| && rm -rf node_modules | |
| # Production stage | |
| FROM python:3.12-alpine AS production | |
| # Image metadata | |
| LABEL maintainer="NVIDIA" | |
| LABEL description="Voice Agent WebRTC UI static server" | |
| LABEL version="1.0" | |
| # Set working directory and copy built assets | |
| WORKDIR /app | |
| COPY --from=builder /app/dist ./static | |
| # Port configuration | |
| EXPOSE 8000 | |
| # Start command | |
| CMD ["python", "-m", "http.server", "8000", "--directory", "static"] |