phonglanvq003 commited on
Commit
08203de
·
verified ·
1 Parent(s): 3475096

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Kali Linux as base
2
+ FROM kalilinux/kali-rolling
3
+
4
+ # Set environment variables
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Install Kali Linux headless core + specific tools + Python libraries via apt
9
+ RUN apt-get update && apt-get install -y \
10
+ kali-linux-headless \
11
+ python3 python3-pip python3-venv \
12
+ python3-fastapi python3-uvicorn python3-multipart python3-websockets\
13
+ masscan \
14
+ dirsearch gobuster ffuf \
15
+ sqlmap wpscan nuclei hydra \
16
+ curl wget netcat-openbsd \
17
+ seclists wordlists \
18
+ whois dnsutils \
19
+ git unzip jq vim sudo \
20
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
21
+
22
+ # Set working directory
23
+ WORKDIR /app
24
+
25
+ # Copy application files
26
+ COPY server.py .
27
+ COPY static ./static
28
+
29
+ # Expose the port HF Spaces uses
30
+ EXPOSE 7860
31
+
32
+ # Start the server
33
+ CMD ["python3", "server.py"]