File size: 520 Bytes
46f8dfe
 
227e456
46f8dfe
36f3374
227e456
36f3374
 
46f8dfe
36f3374
227e456
46f8dfe
22b00f2
36f3374
227e456
46f8dfe
36f3374
 
22b00f2
46f8dfe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use NVIDIA image with PyTorch, CUDA, cuDNN preinstalled
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime

# Enable non-interactive install
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update && apt-get install -y \
    git ffmpeg libsndfile1 python3-dev \
    && rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt

# Copy app files
COPY . /app
WORKDIR /app

CMD ["python3", "app.py"]