chore: update Docker deployment for standalone backend#188
chore: update Docker deployment for standalone backend#188aditya-damerla128 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the reference-server’s production Docker deployment and runtime persistence configuration, while extending manager-admin bootstrap logic to support admin assignment by email on first trusted login.
Changes:
- Reworks the
reference-server/Dockerfileinto a multi-package build (spec → TS client → reference-server) and sets Docker-default runtime env/volume for persistent state. - Adds
DATA_DIRsupport so uploaded files and default SQLite DB location can live under a configurable persistent directory. - Extends manager admin bootstrap configuration to allow admin assignment via
ADMIN_EMAILS(case-insensitive), with corresponding test coverage and documentation updates.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
reference-server/Dockerfile |
Rebuilds Docker image around standalone backend build order and sets runtime defaults/healthcheck. |
.dockerignore |
Adds root build-context exclusions to keep local/dev artifacts out of images. |
reference-server/src/storage/agents.ts |
Adds DATA_DIR-based default DB path and admin-by-email bootstrap support. |
reference-server/src/routes/files.ts |
Stores uploaded file state under DATA_DIR instead of a fixed ./data path. |
reference-server/test/manager-auth.test.js |
Tests admin bootstrap via configured emails in addition to external user IDs. |
reference-server/README.md |
Documents Docker build/run, env-file usage, and storage expectations. |
reference-server/.env.example |
Adds example config for DATA_DIR/DB_PATH and manager forwarded-header admin options. |
01f752f to
eb01e10
Compare
ee87821 to
28e7b11
Compare
|
Startup Steps: docker build -f reference-server/Dockerfile -t ozwellai-reference-server:pr-188 . docker volume create ozwell-reference-data docker run -d |
Summary
Stack
Verification