iamtrask / PySonar

Decentralized Machine Learning Client
Apache License 2.0
198 stars 55 forks source link

Refactor Dockerfile to use multi-stage builds to decrease resulting i… #60

Closed ecliptik closed 6 years ago

ecliptik commented 6 years ago

…mage size - fixes #35. Requires Docker 17.06+ to build.

Original Dockerfile image size was 643MB

pysonar                                        original            2289662e0c9b        About an hour ago   643MB

Refactored multi-stage image is 382MB

pysonar                                        refactor            be1ddac7e9c9        31 minutes ago      382MB

Tested locally with docker-compose and application seems to run the same.