Spaces:
Sleeping
Sleeping
| # Use Python 3.10 | |
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| # Upgrade pip, setuptools, and wheel | |
| RUN pip install --no-cache-dir --upgrade pip setuptools wheel | |
| # Install psutil first (to fix the Webscout dependency issue) | |
| RUN pip install --no-cache-dir psutil pygetwindow | |
| # Install all dependencies except Webscout | |
| RUN grep -v "git+https://github.com/OE-LUCIFER/Webscout.git" requirements.txt > temp_requirements.txt && \ | |
| pip install --no-cache-dir --upgrade -r temp_requirements.txt | |
| # Now install Webscout separately | |
| RUN pip install --no-cache-dir git+https://github.com/OE-LUCIFER/Webscout.git | |
| COPY --chown=user . /app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |