fix: 优化docker 镜像

This commit is contained in:
Daniel
2026-03-02 14:10:43 +08:00
parent 783a69dad1
commit 36576592a2
25 changed files with 491 additions and 58 deletions

8
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -e
export DB_PATH="${DB_PATH:-/data/data.db}"
if [ ! -f "$DB_PATH" ]; then
echo "==> Seeding database..."
node server/seed.js
fi
exec node server/index.js