File size: 935 Bytes
53ea588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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"]