Analyzing the docker layers of node:latest, node:slim and node:alpine images using dive
I found that the Yarn installation adds a /tmp/v8-compile-cache-0 with a size 2.2MiB in all these images and this is not needed for the users of theses images.
node:alpine

node:slim

node:latest

Also, the /var/cache and /var/log folders sounds useless.
Let me know if I can help submitting a PR with
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/*