| # Use Kali Linux as base | |
| FROM kalilinux/kali-rolling | |
| # Set environment variables | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install Kali Linux headless core + specific tools + Python libraries via apt | |
| RUN apt-get update && apt-get install -y \ | |
| kali-linux-headless \ | |
| python3 python3-pip python3-venv \ | |
| python3-fastapi python3-uvicorn python3-multipart python3-websockets\ | |
| masscan \ | |
| dirsearch gobuster ffuf \ | |
| sqlmap wpscan nuclei hydra \ | |
| curl wget netcat-openbsd \ | |
| seclists wordlists \ | |
| whois dnsutils \ | |
| git unzip jq vim sudo \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY server.py . | |
| COPY static ./static | |
| # Expose the port HF Spaces uses | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["python3", "server.py"] | |