feat: Update Docker entrypoint scripts to create admin account on container startup

This commit is contained in:
2025-07-28 22:00:47 +02:00
parent 225d16c1c9
commit 764f6d1100
7 changed files with 54 additions and 16 deletions

17
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Container startup script
# This runs when the container starts, not during build
echo "🚀 Starting application..."
# Ensure data directory exists
mkdir -p /app/data
# Create admin account if it doesn't exist
echo "🔧 Setting up admin account..."
node scripts/create-admin.js
# Start the application
echo "✅ Starting production server..."
exec npm start