From 2f75fd04824dde7105b8bdb377c72329903221d7 Mon Sep 17 00:00:00 2001 From: GH05TCREW Date: Sun, 7 Dec 2025 10:38:57 -0700 Subject: [PATCH] fix: use venv for pip install in Kali dockerfile --- Dockerfile.kali | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile.kali b/Dockerfile.kali index 2aeb076..8e5f636 100644 --- a/Dockerfile.kali +++ b/Dockerfile.kali @@ -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 . .