fix: Resolve nodemon not found error in development Docker

- Explicitly set NODE_ENV=development during npm install to include devDependencies
- Add NODE_ENV=development environment variable in Dockerfile
- Add fallback dev:node script using Node.js --watch flag
- Ensure nodemon is installed with other development dependencies

This fixes the "sh: nodemon: not found" error in the development container.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-23 14:36:18 +02:00
parent 7bcee648ad
commit 677118bdc8
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@
"scripts": {
"start": "node src/app.js",
"dev": "nodemon src/app.js",
"dev:node": "node --watch src/app.js",
"test": "jest --coverage",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix"