Repository navigation
Expand file tree
/
Copy pathDockerfile.dev
More file actions
90 lines (74 loc) · 2.15 KB
/
Copy pathDockerfile.dev
File metadata and controls
90 lines (74 loc) · 2.15 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# ReconFlow Development Dockerfile
# Includes all build tools and source code
FROM golang:1.24-alpine AS builder
# Install build dependencies
RUN apk update && apk add --no-cache \
git \
gcc \
musl-dev \
build-base \
make \
libpcap-dev
WORKDIR /build
# Copy go mod files
COPY go.mod go.sum ./
# Download dependencies
RUN go mod download
# Copy source code
COPY . .
# Build with debug symbols
RUN CGO_ENABLED=1 GOOS=linux go build -o reconflow \
-gcflags="all=-N -l" \
-ldflags="-w" \
./cmd/reconflow
# ===========================================
# Development Runtime
# ===========================================
FROM alpine:3.19 AS runtime
# Update package index and install runtime dependencies
RUN apk update && apk add --no-cache \
ca-certificates \
curl \
bash \
git \
go \
make \
nmap \
masscan \
bind-tools \
nodejs \
npm \
python3 \
libpcap \
sqlite \
lsof \
strace \
tcpdump \
vim \
nano \
htop
# Install Go-based recon tools
RUN go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest && \
go install -v github.com/owasp-amass/amass/v4/...@master && \
go install github.com/tomnomnom/assetfinder@latest && \
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest && \
go install -v github.com/joohoi/ffuf@latest && \
go install -v github.com/projectdiscovery/katana/cmd/katana@latest && \
go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest && \
go install github.com/lc/gau/v2/cmd/gau@latest && \
go install github.com/tomnomnom/waybackurls@latest && \
go install -v github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest && \
go install -v github.com/sensepost/gowitness@latest
# Create directories
RUN mkdir -p /app/output /wordlists /root/go/src/reconflow
# Copy binary
COPY --from=builder /build/reconflow /usr/local/bin/reconflow
# Set environment
ENV PATH="/usr/local/bin:/root/go/bin:${PATH}"
ENV GOPATH="/root/go"
ENV HOME="/root"
ENV CGO_ENABLED=1
# Mount source code for development
VOLUME ["/app", "/root/go/src/reconflow"]
WORKDIR /app
ENTRYPOINT ["/bin/bash"]