FROM python:3.12-slim LABEL maintainer="honeypot.es" LABEL description="T-Pot Attack Map - Mapa de ataques en tiempo real" # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ redis-server \ supervisor \ openssh-client \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY DataServer.py . COPY AttackMapServer.py . COPY supervisord.conf . COPY static/ static/ # Expose web port EXPOSE 8080 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8080')" || exit 1 CMD ["supervisord", "-c", "/app/supervisord.conf"]