-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
29 lines (21 loc) · 877 Bytes
/
Dockerfile
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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
# Install system dependencies, including gcc and other libraries
RUN apt-get update && \
apt-get install -y software-properties-common ffmpeg gcc libc++-dev libc++abi-dev portaudio19-dev
# Install Python 3.12 and pip
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt update && \
apt install -y python3.12 python3-pip python3.12-dev python3.12-venv && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100 && \
python3 -m ensurepip --upgrade && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY realtime_agent realtime_agent
EXPOSE 8080
# Default command to run the app
CMD ["python3", "-m", "realtime_agent.main", "server"]