mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-16 19:56:20 +02:00
feat: add Docker support with multi-stage build, compose configuration, and standalone output mode
This commit is contained in:
1 parent
b73aa8616b
commit
6c0aef1d88
5 files changed
+108
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user