-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile-webrtc-ui
More file actions
45 lines (34 loc) · 1.05 KB
/
Dockerfile-webrtc-ui
File metadata and controls
45 lines (34 loc) · 1.05 KB
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
41
42
43
44
45
# Build stage
FROM node:18-alpine AS builder
# Image metadata
LABEL stage="builder"
LABEL description="UI build environment"
# install git
RUN apk update && apk add git
# clone the ace-controller repository to /ace-controller
WORKDIR /
RUN git clone https://github.com/NVIDIA/ace-controller.git -b develop-health
# Set working directory
WORKDIR /app
# Copy package files and install dependencies
RUN cp /ace-controller/examples/webrtc_ui/package*.json ./
RUN npm ci --frozen-lockfile \
&& npm cache clean --force
# Copy source code and build
RUN cp -r /ace-controller/examples/webrtc_ui/* .
COPY config.ts ./src/config.ts
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 4400
# Start command
CMD ["python", "-m", "http.server", "4400", "--directory", "static"]