Some checks failed
Build and Push / build (push) Failing after 17s
Backend:
- password hashing via hashlib.scrypt
- stateless HMAC-SHA256 tokens (7-day expiry)
- POST /api/auth/login, /api/auth/register (admin), /api/auth/reset-password
- admin user created from NAT20_ADMIN_USERNAME/PASSWORD on first startup
- users table, campaign_shares table, created_by on campaigns
- require_user dependency on all routes except auth
- campaign sharing: GET/POST/DELETE /api/campaigns/{id}/shares
Frontend:
- AuthContext: user/token state, login/logout, global fetch Auth header
- Login page, Users page (admin user management)
- route protection, sidebar user info/sign out
Docker/CI:
- split backend/Dockerfile into thin app-only image
- backend/Dockerfile.deps builds the heavy WhisperX/PyTorch base
- CI builds deps only when requirements.txt changes
- docker compose pull now fetches ~100KB app layer instead of 3.5GB
25 lines
696 B
Docker
25 lines
696 B
Docker
# ==========================================
|
|
# App-only image — fast CI/CD rebuilds.
|
|
#
|
|
# Deps are pre-built and pushed as a separate
|
|
# image (nat20-whisperx-base). CI builds and
|
|
# pushes that image only when requirements.txt
|
|
# changes, so this build typically only copies
|
|
# app code — no pip install, no heavy layers.
|
|
#
|
|
# Local dev — build the base once:
|
|
# docker build -f Dockerfile.deps -t nat20-whisperx-base .
|
|
# Then build this image as needed:
|
|
# docker build -t nat20-notes-backend .
|
|
# ==========================================
|
|
|
|
FROM nat20-whisperx-base:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY app /app/app
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|