Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Node.js Microservices with Tini Initialization

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [TINI_VERSION]
  • [APP_DIR]
  • [NODE_ENV]
  • [PORT]
nodejs-microservices-tini-init.txt
As a Reliability Engineer, write a Dockerfile for a Node.js microservice that incorporates 'tini' (v[TINI_VERSION]) as the init process to handle signal forwarding and zombie process reaping. The Dockerfile must be multi-staged, using a non-root user in [APP_DIR]. Set [NODE_ENV] to production and optimize for [PORT]. Explain why using tini is critical for Node.js containers in a Kubernetes environment.

Example Output

"A robust Dockerfile that ensures proper process management and graceful shutdown, preventing common container 'hanging' issues."