chore: prepare docker container for prisma database
Some checks failed
container-scan / Container Scan (pull_request) Failing after 13s
docker-build / docker (pull_request) Failing after 1m21s

This commit is contained in:
Dominik 2025-05-19 16:54:50 +02:00
parent 6bd4abb1ef
commit 90ce367023
Signed by: dominik
GPG key ID: 06A4003FC5049644
3 changed files with 18 additions and 1 deletions

10
entrypoint.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Running start script with user $(whoami) and NODE_ENV $NODE_ENV"
if [ "$NODE_ENV" == "production" ]; then
if [ -d "prisma/migrations" ]; then
echo "Running Prisma migrations"
npx prisma migrate deploy
fi
fi
exec node server.js