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

Docker: Move from Slim to Alpine #47

Open
hugomd opened this issue Jun 17, 2018 · 0 comments · May be fixed by #48
Open

Docker: Move from Slim to Alpine #47

hugomd opened this issue Jun 17, 2018 · 0 comments · May be fixed by #48

Comments

@hugomd
Copy link
Contributor

hugomd commented Jun 17, 2018

The node slim image by itself is 219 MB, then with all of our build steps it jumps to 321 MB in total.

My recommendation would be that we move to using the node 10-alpine image, which starts at 23 MB, and then install git on top of that, rather than installing it via apt as we do in the slim image:

RUN apt-get -y update && apt-get -y install git

This should reduce overall size and deployment time significantly.

✌️

@hugomd hugomd linked a pull request Jun 18, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant