Replace monolithic CLI and web server with route-based Flask API. New routes: api_commands, api_build, api_can, api_monitor, api_ota, api_tunnel. Add honeypot security dashboard with real-time SSE, MITRE ATT&CK mapping, kill chain analysis. New TUI with commander/help modules. Add session management, tunnel proxy core, CAN bus data store. Docker support.
27 lines
565 B
Docker
27 lines
565 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System dependencies for OpenCV
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
libgl1 \
|
|
libglib2.0-0 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Create runtime directories
|
|
RUN mkdir -p static/streams static/recordings data firmware
|
|
|
|
ENV PYTHONPATH=/app
|
|
|
|
# Default ports: C2=2626, Web=8000, UDP=5000
|
|
EXPOSE 2626 8000 5000/udp
|
|
|
|
# Generate .env from example if not mounted
|
|
ENTRYPOINT ["python", "c3po.py"]
|