1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-03-20 07:09:43 +01:00

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

This commit is contained in:
Ruslan Semagin 2024-06-13 17:18:13 +03:00 committed by GitHub
parent b4f84b448d
commit cb8f380dc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -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.

View File

@ -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/)

View File

@ -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/)