CIA/e-voting-system/docker/Dockerfile.worker
Alexis Bruneteau f825a2392c feat: Implement dark theme for frontend with toggle
Changes:
- Add next-themes dependency for theme management
- Create ThemeProvider wrapper for app root layout
- Set dark mode as default theme
- Create ThemeToggle component with Sun/Moon icons
- Add theme toggle to home page navigation
- Add theme toggle to dashboard header
- App now starts in dark mode with ability to switch to light mode

Styling uses existing Tailwind dark mode variables configured in
tailwind.config.ts and globals.css. All existing components automatically
support dark theme.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 16:35:44 +01:00

32 lines
893 B
Docker

# ============================================================================
# Blockchain Worker Dockerfile
# ============================================================================
# Lightweight service for handling blockchain operations
# Delegates compute-intensive crypto operations from the main API
FROM python:3.12-slim
WORKDIR /app
# Copy requirements from backend
COPY backend/requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend modules (for crypto imports)
COPY backend /app/backend
# Copy worker service
COPY blockchain-worker /app/blockchain-worker
# Set working directory
WORKDIR /app/blockchain-worker
# Health check
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:8001/health')" || exit 1
# Start worker
CMD ["python", "worker.py"]