mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-08 06:44:11 +00:00
fix: use venv for pip install in Kali dockerfile
This commit is contained in:
@@ -55,10 +55,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python dependencies
|
||||
# Install Python dependencies using virtual environment (PEP 668 compliance)
|
||||
COPY requirements.txt .
|
||||
RUN pip3 install --no-cache-dir --upgrade pip && \
|
||||
pip3 install --no-cache-dir -r 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
|
||||
|
||||
# Add venv to PATH
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user