| FROM python:3.9 | |
| WORKDIR /app | |
| # Install system dependencies for aria2, curl, wget | |
| RUN apt-get update && apt-get install -y aria2 curl wget | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Create the download directory | |
| RUN mkdir -p download | |
| RUN chmod 777 download | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |