Dockerfile 471 B

123456789101112131415161718192021
  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 *.py .
  10. COPY templates ./templates
  11. COPY frontend ./frontend
  12. # Expose port
  13. EXPOSE 8000
  14. # Start command
  15. CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]