# ============================================================================ # Bootnode Dockerfile # ============================================================================ # Lightweight service for peer discovery in PoA blockchain network FROM python:3.12-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* # Copy bootnode requirements COPY bootnode/requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy bootnode service COPY bootnode /app/bootnode # Set working directory WORKDIR /app/bootnode # Expose port EXPOSE 8546 # Health check HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ CMD curl -f http://localhost:8546/health || exit 1 # Start bootnode CMD ["python", "bootnode.py"]