feat: add Docker support with multi-stage build, compose configuration, and standalone output mode

This commit is contained in:
Michael committed 2026-04-10 10:01:55 +02:00
1 parent b73aa8616b
commit 6c0aef1d88
5 files changed
+108 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# Exit immediately if a command exits with a non-zero status
set -e
echo "Starting Menu Professional..."
# Run database synchronization
# Note: In a production environment with persistent data,
# 'prisma db push' ensures the schema matches the code.
echo "Synchronizing database schema..."
npx prisma db push --accept-data-loss || echo "Database sync failed, but proceeding..."
# Start the application using node as Next.js is in standalone mode
echo "Launching server..."
exec node server.js