in juice-shop/Dockerfile at master · juice-shop/juice-shop · GitHub
at line 26 COPY --from=installer /juice-shop/node_modules ./node_modules
but the node_modules dir is not mentioned at the first stage???
If you ever used NodeJS, I’m sure you know the nodejs folder is generated automatically by the npm command when you install the dependencies. So no need to mention the folder itself in any stage in a Dockerfile either.
I don’t often use NodeJS, so I couldn’t tell why it was necessary to remove the node_modules folder in the frontend directory. I guess that was created as well, but wasn’t needed in the final stage.
ok. thank you so much sir