File size: 837 Bytes
726724b
 
07631e1
726724b
 
 
 
 
 
 
226f861
726724b
 
 
 
 
 
07631e1
64533cb
4217623
07631e1
11c6d04
 
 
4217623
726724b
11c6d04
726724b
5e5a6da
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
ARG BASE=nvidia/cuda:11.8.0-base-ubuntu22.04
FROM ${BASE}

# Install OS dependencies:
RUN apt-get update && apt-get upgrade -y \
    && apt-get install -y --no-install-recommends \
    gcc g++ \
    make \
    python3 python3-dev python3-pip python3-venv python3-wheel \
    espeak-ng libsndfile1-dev \
    git \
    && rm -rf /var/lib/apt/lists/*

# Install Major Python Dependencies:
RUN pip3 install llvmlite --ignore-installed \
    && pip3 install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 \
    && rm -rf /root/.cache/pip

# Set the working directory
WORKDIR /app

# Copy all files into the container
COPY . .

# Install Python dependencies
RUN pip install --no-cache-dir --user -r requirements.txt

# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]