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-dev.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Development container startup script
# This runs when the development container starts
echo "🚀 Starting development environment..."
# 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 development server
echo "✅ Starting development server..."
exec npm run dev