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

Create a minimal variant? #37

Closed
chorrell opened this issue Aug 28, 2015 · 3 comments
Closed

Create a minimal variant? #37

chorrell opened this issue Aug 28, 2015 · 3 comments

Comments

@chorrell
Copy link
Contributor

A few months ago I was at DockerCon and @proppy asked if it was possible to statically compile Node.js and use the resulting binary to create a very small Docker image with just Node.js. I'm in SF this week and during a hack-a-thon at Joyent I put that out there and it turns out it's pretty easy:

https://hub.docker.com/r/joshwilsdon/nodejs/

I took the above and put together a rough build process/proof-of-concept:

https://hub.docker.com/r/chorrell/node-minimal/

I think this would be an interesting variant we could provide. It would require a some doc on how to use it and how to use it as a base for other images.

@proppy
Copy link

proppy commented Aug 28, 2015

It would be neat to package the binary as a signed layer-ready tarball on every nodejs release.

That way we could just to ADD node-layer-latest.tar.gz to provide the official minimal variant.
And also do something like https://github.com/kubernetes/contrib/tree/master/go2docker to build a docker image for node.js app without docker :)

@chorrell chorrell mentioned this issue Sep 4, 2015
@lucamaraschi
Copy link

👍

@retrohacker
Copy link
Contributor

Duplicate of the work being done here: #46

Building from Alpine and scratch have similar requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants