Files
zoom-sched-poc/Dockerfile
T
kiskaadee 51f656100b feat: scaffold 3-screen Zoom scheduling POC with Flask, Pydantic, and SQLite
- app/schemas.py: add Pydantic v2 request/response models with SecretStr for transient Zoom client_secret
- app/db.py: add SQLite WAL persistence for payment_pending and confirmed appointments without storing credentials
- app/zoom.py: add Zoom Server-to-Server OAuth token, slot conflict check, meeting creation, and cleanup helpers
- app/__init__.py: wire Flask app factory, ProxyFix, Flask-Limiter brute-force rate limits, and idempotent pay endpoint
- app/templates/index.html & static/style.css: build 3-screen smooth-scroll presentation UI matching mockup
- Dockerfile, pyproject.toml, tests/test_app.py: package single-container Gunicorn image and 5 passing pytest cases
2026-11-21 16:28:41 -05:00

22 lines
460 B
Docker

FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DB_PATH=/app/data/appointments.db
COPY pyproject.toml ./
RUN uv sync --no-dev --no-install-project
COPY app ./app
COPY static ./static
RUN mkdir -p /app/data
EXPOSE 8000
CMD ["uv", "run", "--no-dev", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--threads", "4", "app:create_app()"]