forked from Shaunwei/RealChar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 966 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
30
31
32
33
34
35
36
37
FROM python:3.11-slim
# Install dependencies necessary to build and run FFmpeg
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
yasm \
git \
curl \
portaudio19-dev \
libffi-dev \
libssl-dev \
libx264-dev \
libopus-dev
RUN echo "deb http://deb.debian.org/debian/ bullseye main\ndeb-src http://deb.debian.org/debian/ bullseye main" | tee /etc/apt/sources.list.d/ffmpeg.list &&\
apt-get update && \
apt-get install -y ffmpeg=7:4.3.5-0+deb11u1
WORKDIR /realtime_ai_character
# Install Python dependencies
COPY requirements.txt /realtime_ai_character
RUN pip install -r /realtime_ai_character/requirements.txt
# Copy the project files
COPY ./ /realtime_ai_character
# Expose 8000 port from the docker image.
EXPOSE 8000
# Make the entrypoint script executable
RUN chmod +x /realtime_ai_character/entrypoint.sh
# Run the application
CMD ["/bin/sh", "/realtime_ai_character/entrypoint.sh"]