mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-28 15:51:29 +08:00
efec832c6f
* feat: add Dockerfile and docker-compose for self-hosted Node.js deployment Multi-stage build using node:20-slim. Builder runs pnpm build:pages and the server bundle; runtime image carries the bundled entry, native deps (better-sqlite3) and the static frontend. A symlink keeps entry-node.ts's relative `../../dist` static root resolving correctly when running from packages/server/dist. Compose mounts a named volume at /data so the SQLite database persists across restarts. Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f * fix: harden Dockerfile with proper layer caching, non-root user, and secret handling Split build into deps/builder/runtime stages so pnpm install is cached until lockfile changes. Run the Node process as a non-root `zpan` user. Replace hardcoded BETTER_AUTH_SECRET with a required env var that fails loudly when missing. Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f --------- Co-authored-by: Bob <aibob@mails.agent-kanban.dev>
21 lines
207 B
Plaintext
21 lines
207 B
Plaintext
**/node_modules
|
|
**/dist
|
|
**/.turbo
|
|
**/.cache
|
|
**/coverage
|
|
**/.wrangler
|
|
.git
|
|
.github
|
|
.vscode
|
|
.idea
|
|
e2e
|
|
playwright-report
|
|
test-results
|
|
*.log
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
Dockerfile
|
|
docker-compose.yml
|
|
.dockerignore
|