Repository navigation
Expand file tree
/
Copy pathDockerfile.txt
More file actions
101 lines (87 loc) · 2.11 KB
/
Copy pathDockerfile.txt
File metadata and controls
101 lines (87 loc) · 2.11 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
91
92
93
94
95
96
97
98
99
100
101
# Dockerfile for RESISTANCE-BOT
FROM python:3.11-slim
# Metadata
LABEL maintainer="Ian Carter Kulani"
LABEL version="1.0.0"
LABEL description="RESISTANCE-BOT - Advanced Cybersecurity Command & Control Platform"
# Environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
# Network tools
nmap \
curl \
netcat-openbsd \
traceroute \
whois \
dnsutils \
iputils-ping \
telnet \
# SSH
openssh-client \
# Web
wget \
# PDF
wkhtmltopdf \
# Database
sqlite3 \
# Build tools
build-essential \
gcc \
python3-dev \
# Qt dependencies for pyautogui
libxcb-xinerama0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-shape0 \
libxcb-xfixes0 \
libxcb-xkb1 \
libxkbcommon-x11-0 \
# X11
xvfb \
x11-utils \
# Cleanup
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir \
gunicorn \
eventlet \
gevent
# Copy application
COPY . .
# Create necessary directories
RUN mkdir -p .resistance_bot \
resistance_reports \
payloads \
phishing_pages \
phishing_templates \
captured_credentials \
ssh_keys \
traffic_logs \
nikto_results \
reports
# Create non-root user
RUN useradd -m -u 1000 resistance \
&& chown -R resistance:resistance /app
# Switch to non-root user
USER resistance
# Expose ports
EXPOSE 5000 5555 8080 4444
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:5000/ || exit 1
# Entry point
ENTRYPOINT ["python3", "resistance_bot.py"]
# Default command (can be overridden)
CMD []