Dockerfile 380 B

1234567891011121314151617181920
  1. FROM python:3.11-slim
  2. WORKDIR /app
  3. # Install curl for health checks
  4. RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
  5. # Copy and install dependencies
  6. COPY requirements.txt .
  7. RUN pip install --no-cache-dir -r requirements.txt
  8. # Copy application code
  9. COPY app.py .
  10. COPY index.html .
  11. # Expose port
  12. EXPOSE 8001
  13. # Start command
  14. CMD ["python", "app.py"]