-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (50 loc) · 1.85 KB
/
Dockerfile
File metadata and controls
62 lines (50 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM kalilinux/kali-rolling
# Install system dependencies (including Node.js LTS) in a single layer
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
curl \
wget \
whois \
dnsutils \
unzip \
ca-certificates \
libpcap-dev \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN pip3 install uv --break-system-packages
# Detect target architecture for multi-arch binary downloads
ARG TARGETARCH
# Install subfinder (pinned version)
RUN wget -q https://github.com/projectdiscovery/subfinder/releases/download/v2.6.6/subfinder_2.6.6_linux_${TARGETARCH}.zip \
-O /tmp/subfinder.zip \
&& unzip /tmp/subfinder.zip subfinder -d /usr/local/bin/ \
&& chmod +x /usr/local/bin/subfinder \
&& rm /tmp/subfinder.zip
# Install dnsx (pinned version)
RUN wget -q https://github.com/projectdiscovery/dnsx/releases/download/v1.2.1/dnsx_1.2.1_linux_${TARGETARCH}.zip \
-O /tmp/dnsx.zip \
&& unzip /tmp/dnsx.zip dnsx -d /usr/local/bin/ \
&& chmod +x /usr/local/bin/dnsx \
&& rm /tmp/dnsx.zip
# Install naabu (pinned version)
RUN wget -q https://github.com/projectdiscovery/naabu/releases/download/v2.5.0/naabu_2.5.0_linux_${TARGETARCH}.zip \
-O /tmp/naabu.zip \
&& unzip /tmp/naabu.zip naabu -d /usr/local/bin/ \
&& chmod +x /usr/local/bin/naabu \
&& rm /tmp/naabu.zip
WORKDIR /app
# Copy source code
COPY . .
# Install Python dependencies via uv (installs project + deps into .venv)
RUN uv sync
# Add venv to PATH so `python` resolves to the venv Python
ENV PATH="/app/.venv/bin:$PATH"
ENV PYTHONPATH="/app"
# Build the frontend and copy output to where FastAPI serves it
RUN cd web && npm ci && npm run build && cp -r dist/ ../apps/web/dist/
# Default data directory for persistence (mounted as a volume at runtime)
RUN mkdir -p /data