mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-08 06:44:11 +00:00
fix: split pip install for CI memory limits, use CPU torch
This commit is contained in:
@@ -57,8 +57,12 @@ WORKDIR /app
|
||||
# Install Python dependencies using virtual environment (PEP 668 compliance)
|
||||
COPY requirements.txt .
|
||||
RUN python3 -m venv /opt/venv && \
|
||||
/opt/venv/bin/pip install --no-cache-dir --upgrade pip && \
|
||||
/opt/venv/bin/pip install --no-cache-dir -r requirements.txt
|
||||
/opt/venv/bin/pip install --no-cache-dir --upgrade pip wheel setuptools
|
||||
|
||||
# Install heavy dependencies first (helps with CI memory limits)
|
||||
RUN /opt/venv/bin/pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
|
||||
RUN /opt/venv/bin/pip install --no-cache-dir sentence-transformers faiss-cpu
|
||||
RUN /opt/venv/bin/pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Add venv to PATH
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user