WIP - Docker image size improvements. #198
Conversation
0c411a7
to
2062c16
- Current size 597MB - New size 259 Rebuilds debian packages on every requirements.txt change. We need to fix /static/revision info.
2062c16
to
4a533a1
|
This is one way to lighten our docker image size. The base principle is to remove development packages which are not needed to the file image. To achieve this we need to install the needed debian development packages, install python dependencies and finally remove the debian packages all in one RUN. Things to note:
I generally don't like this approach as it complicates the Dockerfile and it feels more error prone. We also lose caching of some layers. This lead me to build #199 @jgmize comments, ideas, questions? |
|
I appreciate all your explanations on the reasoning behind these changes and their results, but I agree with your summary:
This was a useful exercise, but your docker-squash approach in #199 seems to have more promise. |
|
Closing this in favor of #199 |
Rebuilds debian packages on every requirements.txt change.
We need to fix /static/revision info.