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
I searched existing issues before opening this one
Suggestion
Yarn can generate quite large caches that can easily be 100MB or 300MB big.
I think hadolint should tell you to use yarn cache clean in the same layer you installed something to avoid keeping those caches in the final image.
The text was updated successfully, but these errors were encountered:
Or use a multiple stages, which is likely better anyway, since you may need to install dev dependencies, then uninstall those before finalizing the final image.
- Add new rule DL3060 linting for `yarn cache clean` after `yarn
install` with severity `DLInfoC`
- Add tests
This rule reminds the odd programmer about cleaning `yarn`s caches after
installing, just like with the other package managers.
- Add new rule DL3060 linting for `yarn cache clean` after `yarn
install` with severity `DLInfoC`
- Add tests
This rule reminds the odd programmer about cleaning `yarn`s caches after
installing, just like with the other package managers.
Suggestion
Yarn can generate quite large caches that can easily be 100MB or 300MB big.
I think hadolint should tell you to use
yarn cache clean
in the same layer you installed something to avoid keeping those caches in the final image.The text was updated successfully, but these errors were encountered: