-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (37 loc) · 1.08 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (37 loc) · 1.08 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
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
nmap \
net-tools \
iproute2 \
iptables \
tcpdump \
unison \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /app
# Copy requirements
COPY requirements_security.txt .
RUN pip install --no-cache-dir -r requirements_security.txt
# Copy application files
COPY blockcode_nft_client.py .
COPY tesseract_protocol_factory.py .
COPY network_nft_bridge.py .
COPY network_scanner_blockcode.py .
COPY security_breach_detector.py .
# Copy protocol implementations
COPY protocols/ ./protocols/
# Create data directory
RUN mkdir -p /app/data /app/logs
# Expose ports
EXPOSE 8080 9000
# Environment variables
ENV NETWORK_NAME="asus 4c"
ENV SUBNET="192.168.1.0/24"
ENV SCAN_INTERVAL=30
ENV ENABLE_PQXDH=true
# Health check
HEALTHCHECK --interval=60s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import socket; s=socket.socket(); s.connect(('127.0.0.1', 8080)); s.close()" || exit 1
# Default command
CMD ["python", "security_breach_detector.py", "--scan"]