mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Dockerize the server
+ Add Dockerfile + Update 'server' docker-compose service
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Entry point for docker
|
||||
|
||||
if ! test -f INITIALIZED; then
|
||||
# Migrate the database
|
||||
# TODO: Update to use prisma migrate
|
||||
npx prisma db push
|
||||
touch INITIALIZED
|
||||
fi
|
||||
|
||||
# Start the server
|
||||
node ./dist/app.js
|
||||
Reference in New Issue
Block a user