DEV Community

Walter Nascimento
Walter Nascimento

Posted on

How Reduced Docker images

This is a small tip.

When you use docker if you need, install some dependency use

–no-install-recommends
Enter fullscreen mode Exit fullscreen mode

Example:

apt-get install --no-install-recommends -y git 
Enter fullscreen mode Exit fullscreen mode

after that you can see you docker image very small

References

Ubuntu


Thanks for reading!

If you have any questions, complaints or tips, you can leave them here in the comments. I will be happy to answer!
😊😊 See you! 😊😊


Support Me

Youtube - WalterNascimentoBarroso
Github - WalterNascimentoBarroso
Codepen - WalterNascimentoBarroso

Top comments (0)