CoolFace
Apppublic

itsmrop/Kali-Linux

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile54 linesDownload Raw Back to root
1FROM kalilinux/kali-rolling2 3# Prevent interactive prompts during build4ENV DEBIAN_FRONTEND=noninteractive5ENV PYTHONUNBUFFERED=16ENV TERM=xterm-256color7 8# Update system and install Kali tools + Python venv support9RUN apt-get update && apt-get install -y \10    kali-linux-headless \11    hashcat \12    hashid \13    hydra \14    dirb \15    gobuster \16    nmap \17    sqlmap \18    john \19    wireshark-common \20    net-tools \21    iputils-ping \22    curl \23    wget \24    git \25    vim \26    python3 \27    python3-pip \28    python3-venv \29    && rm -rf /var/lib/apt/lists/* \30    && apt-get clean31 32# Create Python virtual environment (fixes PEP 668 error)33RUN python3 -m venv /opt/kali-venv34ENV PATH="/opt/kali-venv/bin:$PATH"35 36# Set working directory37WORKDIR /app38 39# Install Python packages inside venv (no --break-system-packages needed)40COPY requirements.txt .41RUN pip install --no-cache-dir -r requirements.txt42 43# Copy application code44COPY . .45 46# Create non-root user for some operations47RUN useradd -m -s /bin/bash kali-user48RUN chown -R kali-user:kali-user /app49 50# Expose Hugging Face Spaces default port51EXPOSE 786052 53# Start the Flask application using venv Python54CMD ["python", "app.py"]