Skip to content

Conversation

mwcampbell
Copy link

By combining all of the steps to download the source, build it, and clean up afterward into a single RUN command, and by adding a few extra cleanup steps and CMake options, I reduced the size of this image from about 3 GB to about 500 MB, with no loss of functionality.

Copy link
Member

Choose a reason for hiding this comment

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

Can we swap this to use curly braces instead of parenthesis to prevent the creation of a subshell environment? See command grouping for more information. Also, can we change those double quotes around *.a to single quotes?

Could we swap the -print piping to xargs to just use -exec directly?

Combining the two we would get: && { find /usr/local/mysql -type f -executable -exec strip --strip-all '{}' + || true; }.

@yosifkit yosifkit merged commit 1593c8f into docker-library:master Jun 19, 2014
@tianon
Copy link
Member

tianon commented Jun 19, 2014

Just to note, @yosifkit made the changes we requested. Thanks for the contribution! :)

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.

3 participants