Posts about docker

2 posts

  1. Graceful shutdown: handling SIGTERM without dropping requests

    Every deploy stops your old processes. Here is how to handle SIGTERM so in-flight requests finish, connections close cleanly and users never notice.

    3 min read

  2. Smaller Docker images with multi-stage builds

    How multi-stage Dockerfiles keep compilers and dev dependencies out of your final image, with a simple Node example and a few habits that help.

    2 min read