Reduce the size of Docker Image : 5 Tips

Saurabhk
May 8, 2021

--

How to slim down your Docker Image size for Machine Learning(ML) App?

Pic Credit: Joviton D’costa

Docker Image size can get really big after transferring all those packages, model weights and other resources of your ML Apps. There are few quick ways we can try to reduce the image size so it gets manageable when you are pushing it on docker registry or during deployment.

Below Infographics demonstrate some Tips & Tricks to slim down your docker image:

Infographics by Author

Following this steps can help you drastically reduce the size image thus making it manageable & also saving some cost incurred for storage on Container Registry. You can download the image & keep it handy for your reference.

Checkout my article for more details :Docker Toolkit: Dockerizing Flask App to get started with Dockizing python application.

--

--

Saurabhk
Saurabhk

Written by Saurabhk

Data Science Enthusiast. Love Applied Research.

No responses yet