chore: add development docker environment

adds a docker environment for development.
can be started using:
`docker compose -f docker-compose.dev.yml up --watch --build`
This commit is contained in:
Dominik 2025-05-21 14:29:00 +02:00 committed by Dominik
parent cdc0e81e51
commit a2a5eee49e
4 changed files with 56 additions and 1 deletions

10
entrypoint.dev.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Running start script with user $(whoami) and NODE_ENV $NODE_ENV"
if [ -d "prisma" ]; then
echo "Syncing Prisma database"
yarn prisma:generate
yarn prisma:db:push
fi
exec yarn dev