File size: 575 Bytes
7732d22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git ffmpeg libsm6 libxext6 wget curl && \
    pip install --upgrade pip

# Install Python dependencies
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt

# Copy source code and scripts
COPY . /app

# Make script executable
RUN chmod +x /app/start.sh

# Download huggingface_hub for model downloading
RUN pip install huggingface_hub

# Set entry point to your script
ENTRYPOINT ["bash", "/app/start.sh"]