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

Update miniconda3 Dockerfile #77

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Conversation

mrocklin
Copy link
Contributor

@mrocklin mrocklin commented Feb 8, 2018

This does the following:

  1. Remove listed maintainer

  2. Remove a few of the apt packages, also clear lists

  3. Update miniconda to 4.3.31

  4. Call conda clean -tipsy at the end of the conda line

  5. Replace TINI dpkg installation with solution suggested here:

    https://github.com/krallin/tini#using-tini

This is untested and includes removing some packages. This is up here for review.

This does the following:

1.  Remove listed maintainer
2.  Remove a few of the apt packages, also clear lists
3.  Update miniconda to 4.3.31
4.  Call `conda clean -tipsy` at the end of the conda line
5.  Replace TINI dpkg installation with solution suggested here:

    https://github.com/krallin/tini#using-tini
@mrocklin
Copy link
Contributor Author

mrocklin commented Feb 8, 2018

My original goal was to reduce the image size here (see also ContinuumIO/anaconda-issues#8473) . I didn't accomplish much. This takes the image size from 500-ish MB to 400-ish MB

/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=)

@msarahan
Copy link
Contributor

20% is not bad. Thanks @mrocklin. I think the builds are automated, but I'll watch this and make sure.

@msarahan msarahan merged commit 7200d37 into anaconda:master Feb 19, 2018
@mrocklin mrocklin deleted the update-miniconda3 branch February 19, 2018 16:02
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 this pull request may close these issues.

None yet

2 participants