Dockerfile 243 B

12345678910
  1. FROM python:3.10-slim
  2. WORKDIR /app
  3. # Install FastAPI and dependencies
  4. RUN pip install --no-cache-dir fastapi uvicorn jinja2 python-multipart
  5. COPY . .
  6. # Run the app on port 80
  7. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]