Spaces:
Sleeping
Sleeping
| # Use an older, stable Debian base where packages are available | |
| FROM python:3.10-bookworm | |
| # Set working directory | |
| WORKDIR /home/user/app | |
| # Copy all files into the container | |
| COPY . . | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| git lfs install | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run your app | |
| CMD ["python", "app.py"] | |