File size: 771 Bytes
01c648f
37ab154
390c72c
 
 
 
 
 
 
1bec907
e3f9d3e
 
01c648f
5fe2078
01c648f
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
23
24
25
26
# 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"]