-
Notifications
You must be signed in to change notification settings - Fork 111
/
Dockerfile
41 lines (30 loc) · 1.1 KB
/
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
38
39
40
41
# Use an NVIDIA CUDA base image with Python 3
FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
ENV PYTHON_VERSION=3.10
# Set the working directory in the container
WORKDIR /usr/src/app
# Avoid interactive prompts from apt-get
ENV DEBIAN_FRONTEND=noninteractive
# Install any needed packages
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qq update \
&& apt-get -qq install \
ffmpeg \
libsndfile1 \
python3-pip \
python${PYTHON_VERSION} \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements.txt file
COPY requirements.txt requirements.txt
# Install any needed packages specified in requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the rest of your application's code
COPY . .
# Make port 8765 available to the world outside this container
EXPOSE 8765
# Define environment variable
ENV NAME VoiceStreamAI
# Set the entrypoint to your application
ENTRYPOINT ["python3", "-m", "src.main"]
# Provide a default command (can be overridden at runtime)
CMD ["--host", "0.0.0.0", "--port", "8765"]