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

miniconda3 on alpine linux #30

Closed
Maxyme opened this issue May 12, 2016 · 13 comments
Closed

miniconda3 on alpine linux #30

Maxyme opened this issue May 12, 2016 · 13 comments

Comments

@Maxyme
Copy link

Maxyme commented May 12, 2016

Would it be possible to add a version of the dockerfile using alpine linux instead of full debian? This would make it much faster to download and upload.

See example for redis on alpine:
https://github.com/docker-library/redis/blob/6cb8a8015f126e2a7251c5d011b86b657e9febd6/3.2/alpine/Dockerfile

@jontonsoup
Copy link

@Maxyme Not maintainer, but FYI. I've tried building on both alpine and debian... the size difference is pretty minimal.

@andreacassioli
Copy link

@jontonsoup Could you share the Dockerfile?

@andreacassioli
Copy link

Just to mention, from docker image ls

  • python3 alpine : 92MB
  • continuumio/miniconda3: 571MB

Either miniconda is not that minimal, or alpine is much smaller, or both!

@jontonsoup
Copy link

@andreacassioli i threw it out after the test, but your comparison above is not accurate. python 3 alpine doesn't include all the dependencies miniconda includes. Its not a fair comparison. In my experience, its all the libraries that take up the space.

@mingwandroid
Copy link
Contributor

Also continuumio/miniconda3: 571MB is wrong, we use hardlinks, I suspect you are counting them twice.

@mingwandroid
Copy link
Contributor

Oh and we also keep the tarballs present for all packages, these can be cleaned via conda if you are attempting to reduce a docker image size. Miniconda is comprised of about 33 packages.

@andreacassioli
Copy link

@mingwandroid Thanks for the suggestion! It would be nice if Continuum could provide a microconda image. I mean, of course one could go an tweak it, but if you could work out a very minimal image would be great.

@msarahan
Copy link
Contributor

We do, actually: https://hub.docker.com/r/continuumio/miniconda/

@mrocklin
Copy link
Contributor

See also #77, which shaves of 70MB or so

@mrocklin
Copy link
Contributor

Either miniconda is not that minimal, or alpine is much smaller, or both!

Miniconda is not that minimal. It outweighs the entire debian image by several times. I don't think that debian vs alpine is yes the limiting factor.

@OrangeDog
Copy link

This has been done.
continuumio/miniconda3:4.7.12 is 151MB
continuumio/miniconda3:4.7.12-alpine is 55MB

@soapy1 soapy1 closed this as completed Nov 5, 2019
@mrocklin
Copy link
Contributor

mrocklin commented Nov 5, 2019

Nice.

@andreacassioli
Copy link

awesome

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

No branches or pull requests

8 participants