Node.js: Selecting your own image

This documentation is part of the Node.js runtime selection guide. You can view the complete guide here: How Stackhero selects and manages the Node.js version for your application.

👋 Welcome to the Stackhero documentation!

Stackhero provides a ready-to-use Node.js cloud solution designed to help you move faster:

  • Deploy your application to production in seconds with a simple git push. No additional tools or manual configuration required.
  • Use your own domain and benefit from automatic HTTPS certificate setup, ensuring your application is secure without any extra steps.
  • Enjoy automatic backups, one-click updates, and clear, predictable pricing so you can focus on developing features while Stackhero manages the infrastructure.
  • Experience optimal performance and enhanced security thanks to a private, dedicated VM.

Save time and simplify your operations: it only takes a few minutes to try out Stackhero's Node.js cloud hosting solution!

The image field accepts any tag from the official Node.js Docker images and uses it exactly as written:

image: node:24-alpine3.21

Be sure to specify the full tag and use an official Node.js image. These two requirements allow Stackhero to reliably manage your deployment, from installing dependencies to starting your application. If you specify an unsupported image, this will be reported before the build begins, and your running application will not be affected.

Alpine tags produce smaller images that start quickly. If your project uses dependencies requiring native code compilation, you may need a Debian-based image. If an installation fails with Alpine, switching to a -slim tag usually resolves the issue.