[ckan-changes] [ckan/ckan] ad3c34: Optimize Docker image build to minimize its size
GitHub
noreply at github.com
Mon Nov 21 14:41:38 UTC 2016
Branch: refs/heads/master
Home: https://github.com/ckan/ckan
Commit: ad3c34eba83e74d15ca11e904a6cdc793938001b
https://github.com/ckan/ckan/commit/ad3c34eba83e74d15ca11e904a6cdc793938001b
Author: Peter Dave Hello <hsu at peterdavehello.org>
Date: 2016-11-21 (Mon, 21 Nov 2016)
Changed paths:
M Dockerfile
Log Message:
-----------
Optimize Docker image build to minimize its size
Combine apt-get related commands in a single RUN statements,
to prevent some additional but useless layers created during the build.
Size difference:
```
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
after <none> 84cac1 9 minutes ago 629 MB
before <none> ff3e9b 32 minutes ago 651.5 MB
```
Reference:
Best practices for writing Dockerfiles
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#run
Commit: 33b9f9d6e845787c0413e9c85eee19fde454089c
https://github.com/ckan/ckan/commit/33b9f9d6e845787c0413e9c85eee19fde454089c
Author: Ian Ward <ian at excess.org>
Date: 2016-11-21 (Mon, 21 Nov 2016)
Changed paths:
M Dockerfile
Log Message:
-----------
Merge pull request #3322 from PeterDaveHelloKitchen/Dockerfile-optimize
Optimize Docker image build to minimize its size
Compare: https://github.com/ckan/ckan/compare/9b5bf5d3accc...33b9f9d6e845
More information about the ckan-changes
mailing list