hackingtool/Dockerfile
Hardik Zinzuvadiya daf253d255 Phase 11: requirements.txt and Dockerfile cleanup
- requirements.txt: remove boxes, lolcat (system CLI tools not pip packages),
  flask (unused), requests (unused at runtime); pin rich>=13.0.0
- Dockerfile: add --break-system-packages to pip3 install (PEP 668 compliance
  on Kali/Debian externally-managed Python environments)
2026-03-15 13:55:05 +05:30

21 lines
735 B
Docker

FROM kalilinux/kali-rolling:latest
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git python3-pip python3-venv sudo curl wget php && \
rm -rf /var/lib/apt/lists/*
WORKDIR /root/hackingtool
COPY requirements.txt ./
# Bug 21 fix: boxes/lolcat/flask are NOT pip packages — removed
# --break-system-packages needed on Kali (PEP 668 externally-managed env)
RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
COPY . .
# Bug 20 fix: path file must be in /root/ not /home/ (running as root in Docker)
RUN mkdir -p /root/.hackingtool/tools
# Vuln 3 fix: removed EXPOSE 1-65535 — this tool is a CLI, not a server
ENTRYPOINT ["python3", "/root/hackingtool/hackingtool.py"]