Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimize node images removing the content in /tmp folder #1326
Comments
|
There is an open PR for some of this over here #1283 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Analyzing the docker layers of
node:latest,node:slimandnode:alpineimages using diveI found that the Yarn installation adds a
/tmp/v8-compile-cache-0with a size 2.2MiB in all these images and this is not needed for the users of theses images.node:alpinenode:slimnode:latestAlso, the
/var/cacheand/var/logfolders sounds useless.Let me know if I can help submitting a PR with
rm -rf /tmp/*