Add a docker dev environment that starts a container without building the image

+ Add dev.sh script to start the dev environment
+ Add generated flags to the .gitignore file
This commit is contained in:
Stephan
2021-12-03 10:21:43 +01:00
parent 6b6ca57639
commit 2b061c5f65
3 changed files with 43 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
if ! test -f INITIALIZED; then
touch INITIALIZED
cd /app
npm i -g ts-node nodemon
npm i
npx prisma db push
fi
nodemon /app/src/app.ts