-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-client.Dockerfile
More file actions
38 lines (30 loc) · 864 Bytes
/
web-client.Dockerfile
File metadata and controls
38 lines (30 loc) · 864 Bytes
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
FROM python:3.9-slim
WORKDIR /app
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libavdevice-dev \
libavfilter-dev \
libopus-dev \
libvpx-dev \
pkg-config \
libsrtp2-dev \
libopusfile-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy web client requirements
COPY web_client/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy web client code
COPY web_client /app/
# Create logs directory
RUN mkdir -p /app/logs
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PORT=8080
ENV RELAY_SERVER=ws://relay-server:8000
# Expose port for web interface
EXPOSE $PORT
# Run the web client - use shell form for environment variable expansion
CMD python app.py --host 0.0.0.0 --relay-server $RELAY_SERVER --log-dir logs