emqxarchive / emqx-docker

This repository is no longer maintained, please go to https://github.com/emqx/emqx-rel/tree/master/deploy/docker
Apache License 2.0
235 stars 162 forks source link

Fix image size #73

Closed thynson closed 6 years ago

thynson commented 6 years ago

Last change to emqx Dockerfile separate the build of otp and emqx. However the installed package used to build otp was not removed from the otp layer, thus increasing the final image size no matter whether they're removed or not. This pull request fix the above issue.

spring2maz commented 6 years ago

@thynson it was my bad. Thanks for the PR. It's fixed in emqx30 branch already though. The image built from your branch is about 150MB The image built from branch emqx30 is about 88MB.

I guess there is no easy way to split the build step without bloating image size.