You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm provides the npm ci command to install the versions specified in the package-lock.json. If your container is being built by CI & test are run with it, I believe you'd want the same versions as those running locally so should the command be npm ci here?
The text was updated successfully, but these errors were encountered:
jameswragg
changed the title
Dockerfile - should npm i here be npm ci?
Dockerfile - should npm ci be used?
Dec 4, 2023
As I mentioned on Discord on this previous topic, I believe it'd be a nice addition. You could also leverage multi-steps Docker image if you'd want to use npm i for dev and npm ci for prod. The problem would be that you'll be installing the dependencies two times when building for prod which might not be ideal. It's probably better to only use npm ci.
Referring to the following line:
boilerplate/server/Dockerfile
Line 21 in d1b4fda
npm
provides thenpm ci
command to install the versions specified in thepackage-lock.json
. If your container is being built by CI & test are run with it, I believe you'd want the same versions as those running locally so should the command benpm ci
here?The text was updated successfully, but these errors were encountered: