Deploy application in container using compose to bring up db

This commit is contained in:
2025-11-19 13:37:34 +01:00
parent d5befdd018
commit ae86a2e5fa
10 changed files with 230 additions and 10 deletions

20
cntmanage/docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
echo "📦 Starting Django deploy script..."
echo "🔧 Running migrations..."
django-admin migrate --noinput
echo "📁 Collecting static files..."
django-admin collectstatic --noinput
echo "📁 Manually copying static files..."
cp -v /app/static/* /var/www/static/
echo "📁 Manually copying template files..."
cp -rv /app/templates/ /var/www/templates/
echo "🚀 Launching Flightslot..."
exec "$@"