Make our container slimmer #425
Comments
|
|
vs |
|
You need to more command chaining in your Dockerfile RUN statements. Example: -RUN yum install -y supervisor That is one of the drawbacks in the way an image is built is even though you so some clean up in a later RUN command, all the data is still in the final image no matter what due to change history. So any cleanup for a command needs to be in the same RUN command either as a shell script or by chaining them (&&). dkl |
|
Yeah I'd heard that, its interesting: Three installs, no clean: Install and clean in one line: Install and clean in three lines: |
|
Yeah that is strange that you get smaller size when doing each package individually. Had never tried that way as the all on one line is less typing :) There must be a reason for it but not worth it as 38.7 is still loads better than 224.5. dkl |
git, python, supervisor and mysql-community-server are the biggest culprits
The text was updated successfully, but these errors were encountered: