link to 'Docker Multi-stage builds' (#5863)

This commit is contained in:
Ruslan Semagin authored and GitHub committed 2024-06-13 15:18:13 +01:00
1 parent b4f84b448d
commit cb8f380dc0
3 files changed
+8 -2

No files matched your search

@@ -57,4 +57,4 @@ To build an image from the Dockerfile, use the `docker build` command, specifyin
docker build -t my-image:tag .
```
After running this command, Docker will execute each instruction in the Dockerfile, in order, creating a new layer for each.
After running this command, Docker will execute each instruction in the Dockerfile, in order, creating a new layer for each.
@@ -37,4 +37,6 @@ When you build the image for the first time, Docker will execute each instructio
By following these best practices, you can optimize the layer caching process and reduce the build time for your Docker images, making your development and deployment processes more efficient.
- [@article@Docker Layer Caching](https://docs.docker.com/build/cache/).
Visit the following resources to learn more:
- [@article@Docker Layer Caching](https://docs.docker.com/build/cache/)
@@ -73,3 +73,7 @@ When building container images, it's essential to be aware of both image size an
- **Scan images for vulnerabilities:** Use tools like [Anchore](https://anchore.com/) or [Clair](https://github.com/quay/clair) to scan your images for vulnerabilities and fix them before deployment.
By following these best practices, you'll be able to build more efficient and secure container images, leading to improved performance and a reduced risk of vulnerabilities in your applications.
Visit the following resources to learn more:
- [@official@Multi-stage builds](https://docs.docker.com/build/building/multi-stage/)