Spaces:
Running
Running
File size: 672 Bytes
1bec907 390c72c 1bec907 e3f9d3e e2b1a14 06d5101 e2b1a14 390c72c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.10 # Use Python 3.10 instead of 3.9
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 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"]
|