Skip to content
DeployDocs 1.3.x

Docker Containerization ​

A container packages your service; it does not change how the service works. The image needs the application, generated protobuf code, production dependencies and a compatible runtime.

Package the process before launch Build-time dependencies and generated code form a runtime image, while launch configuration, protocol-aware probes and termination handling remain explicit. Build environment Runtime container Build inputslockfile copied before sources.dockerignore keeps proto inputs Build stagelocked install + buf generateprune caches and dev tooling Runtime imageapp + generated + prod depsNode / Bun runtimenon-root; pin runtime digestAlpine: validate libc / arch Launch configurationenvironment / service / portsecrets supplied at launch Service processh2c probe speaks HTTP/2/healthz: 200 or 503termination signal + drain Choose execution modeJS / tsx: Node ≥22.13.0native TS: Node ≥25.2.0Bun: execute TypeScripttsx: production dependencyno registry download at start Local Compose + OTelservices → collector → traces / metrics backends; verify your chosen stack
Recipe overview, not a live-validated image. Supply secrets at launch, install startup dependencies during the build, and validate the selected runtime and probe.

Three checks before deployment ​

  1. Can it execute the application? Native .ts on Node.js requires ≥25.2.0; compiled JavaScript and tsx follow the package floor, ≥22.13.0. A production tsx launch needs tsx in production dependencies.
  2. Does the probe speak the right protocol? A plaintext h2c listener needs an HTTP/2-capable probe, not an HTTP/1.1-only health check.
  3. Can it stop cleanly? Deliver the termination signal and leave time for drain.

Go deeper ​

Find a section from the full guide

The detailed material is preserved on a separate page. Earlier section links still work here.