2 Commits

Author SHA1 Message Date
b5e58510b6 add .dockerignore file
Ignore node_modules in build to prevent issue with COPY or bind mounts
when dependencies already exist on the host's filesystem

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-05 10:19:14 +02:00
b13a9f1409 Update package.json
Add legacy polling (-L) to nodemon in order to work with volumes on Windows.
2023-10-12 13:26:12 -07:00
3 changed files with 6 additions and 4 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
Dockerfile

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"prettify": "prettier -l --write \"**/*.js\"", "prettify": "prettier -l --write \"**/*.js\"",
"test": "jest", "test": "jest",
"dev": "nodemon src/index.js" "dev": "nodemon -L src/index.js"
}, },
"dependencies": { "dependencies": {
"express": "^4.18.2", "express": "^4.18.2",

View File

@ -2162,9 +2162,9 @@ json-parse-even-better-errors@^2.3.0:
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
json5@^2.2.1: json5@^2.2.1:
version "2.2.3" version "2.2.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
kleur@^3.0.3: kleur@^3.0.3:
version "3.0.3" version "3.0.3"