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

pull/5867/head
Ruslan Semagin 5 months ago committed by GitHub
parent b4f84b448d
commit cb8f380dc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/data/roadmaps/docker/content/106-building-container-images/100-dockerfiles.md
  2. 4
      src/data/roadmaps/docker/content/106-building-container-images/101-efficient-layer-caching.md
  3. 4
      src/data/roadmaps/docker/content/106-building-container-images/102-image-size-and-security.md

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

Loading…
Cancel
Save