# Simple Dockerfile for Red Head Python Backend FROM python:3.9-slim # Set working directory WORKDIR /app # Copy requirements and install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code and all files COPY . . # Create directory for cache if it doesn't exist RUN mkdir -p cache # Expose port EXPOSE 6006 # Health check HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ CMD curl -f http://localhost:6006/api || exit 1 # Run the application CMD ["python", "app.py"]