File size: 375 Bytes
d09d352
636c470
 
d09d352
 
636c470
d09d352
636c470
 
 
 
d09d352
 
 
636c470
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use lightweight Python image with CUDA support (if needed)
FROM python:3.10-slim

# Install system dependencies
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*

# Copy app
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Expose Flask port
EXPOSE 7860

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