Dockerize the server

+ Add Dockerfile
+ Update 'server' docker-compose service
This commit is contained in:
Stephan
2021-11-12 10:18:13 +01:00
parent e4fab0f5b6
commit 1cdbddf753
4 changed files with 52 additions and 4 deletions
+11
View File
@@ -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