Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The following example is from TechWorld with Nana GitLab. BTW, Nana’s youtube channel is highly recommended. Below is her docker’s tutorial:
Base your images on smaller size images. You can use distribution such as the alpine Linux or Google’s distroless.
One last thing before wrapping this guide, I would like to recommend an open-source utility named Dive. Among its many features, you can explore each layer's content, file sizes, and more. Basically, It helps you analyze docker images. Eventually, providing enough info to think of ways to reduce image sizes.
Related posts
- Minify your container by up to 30x to be more secure (free and open source)
- A COMPLETE guide on how to make Docker images even smaller
- Mastering Docker Image Optimization: 6 Key Strategies for building Lighter, Faster, and Safer images
- Optimisation des images Docker: 6 Stratégies clés pour des images plus légeres et plus performantes
- Dive – A tool for exploring each layer in a Docker image