AndreMiras / EtherollApp

Provably fair dice game running on the Ethereum blockchain
MIT License
57 stars 22 forks source link

Docker image size optimization #161

Closed AndreMiras closed 4 years ago

AndreMiras commented 4 years ago

Optimize image size by deleting what's not needed between layers, that way the docker pull would go faster.

AndreMiras commented 4 years ago

Last changes reduced both images size slightly, but there's definitely room for improvements. etherollapp-android got reduced from 462 MB to 432.24 MB. And etherollapp-linux got reduced from 292 MB to 263 MB.

AndreMiras commented 4 years ago

Also take a look at https://docs.docker.com/develop/develop-images/multistage-build/