blog-prisma2
blog-prisma2 copied to clipboard
How to get `package-lock.json` file written to local volume
Hey @CaptainChemist,
I'm curios to hear how you get the backend/package-lock.json for example to be written to your local machine so that you can check it in.
When running npm run build, the Dockerfile will run npm install inside the container and therefore also create the package-lock.json file inside the container, but not on my local machine.
My question is, how do you manage to get the package-lock.json checked in with git?
See similar Stack overflow question posted here; https://stackoverflow.com/questions/52285137/how-should-the-package-lock-json-file-be-generated-for-node-js-docker-apps
Thanks for posting your example project here on Github!