diff --git a/README.md b/README.md index 31af84c4..6a66b592 100644 --- a/README.md +++ b/README.md @@ -1083,7 +1083,7 @@ Bear in mind that with the introduction of the new V8 engine alongside the new E ## ![✔] 8.1 Use multi-stage builds for leaner and more secure Docker images -**TL;DR:** A lot of build-time dependencies and files are not needed for running your application. With multi-stage builds, these resources can be used during build, while the runtime environment contains only what's necessary. Multi-stage builds are an easy way to reduce overhead in size and vulnerabilities. +**TL;DR:** Use multi-stage build to copy only necessary production artifacts. A lot of build-time dependencies and files are not needed for running your application. With multi-stage builds, these resources can be used during build, while the runtime environment contains only what's necessary. Multi-stage builds are an easy way to get rid of overweight and security threats **Otherwise:** Larger images will take longer to build and ship, build-only tools might contain vulnerabilities, and secrets only meant for the build phase might be leaked. diff --git a/sections/docker/graceful-shutdown.md b/sections/docker/graceful-shutdown.md index bf73a8d6..7f13911f 100644 --- a/sections/docker/graceful-shutdown.md +++ b/sections/docker/graceful-shutdown.md @@ -8,35 +8,8 @@ In a Dockerized runtime like Kubernetes, containers are born and die frequently.

-### Code Example – A graceful shutdown when using Express and Kubernetes -
- -JavaScript - -``` -TBD -``` - -
- -

- -### Code Example – Harsh shutdown - -
- -JavaScript - -``` -TBD -``` - -
- -

- -### Code Example – Making Node.js the root process allowing passing signals to the code +### Code Example – Placing Node.js as the root process allows passing signals to the code
@@ -109,7 +82,3 @@ CMD ["npm", "start"] From the blog, [Rising Stack](https://blog.risingstack.com/graceful-shutdown-node-js-kubernetes/) ![alt text](/assets/images/Kubernetes-graceful-shutdown-flowchart.png "The shutdown phases") - -``` - -```