Files
panel/docker-entrypoint.sh

18 lines
378 B
Bash

#!/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