X Tutup
The Wayback Machine - https://web.archive.org/web/20200917220320/https://github.com/nodejs/docker-node/issues/1326
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize node images removing the content in /tmp folder #1326

Open
navarroaxel opened this issue Sep 15, 2020 · 1 comment
Open

Optimize node images removing the content in /tmp folder #1326

navarroaxel opened this issue Sep 15, 2020 · 1 comment

Comments

@navarroaxel
Copy link

@navarroaxel navarroaxel commented Sep 15, 2020

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
Screenshot_20200915_080820
node:slim
Screenshot_20200915_081850
node:latest
Screenshot_20200915_081412

Also, the /var/cache and /var/log folders sounds useless.

Let me know if I can help submitting a PR with

rm -rf /tmp/*
@nschonni
Copy link
Member

@nschonni nschonni commented Sep 15, 2020

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup