chore: update Docker build and dependencies

- Add .dockerignore for runtime state files (sqlite, logs, secrets)
- Bump Node.js base image from 18 to 20
- Add @types/better-sqlite3 dev dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-16 16:55:35 -05:00
parent 4fe1eb7b47
commit 109550e693
4 changed files with 1100 additions and 1849 deletions

View file

@ -2,3 +2,21 @@
.github .github
build build
node_modules node_modules
# Runtime state files (should not be baked into image)
*.sqlite
*.sqlite-journal
*.sqlite-wal
*.sqlite-shm
*.db
admin.connect
admin.enroll
admin.npub
app.nprofile
.jwt_secret
# Runtime data directories
metric_cache/
metric_events/
bundler_events/
logs/

View file

@ -1,4 +1,4 @@
FROM node:18 FROM node:20
WORKDIR /app WORKDIR /app

2920
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -77,6 +77,7 @@
"zip-a-folder": "^3.1.9" "zip-a-folder": "^3.1.9"
}, },
"devDependencies": { "devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"@types/chai": "^4.3.4", "@types/chai": "^4.3.4",
"@types/chai-string": "^1.4.5", "@types/chai-string": "^1.4.5",
"@types/cors": "^2.8.17", "@types/cors": "^2.8.17",