Skip Navigation
Show nav
Heroku Dev Center Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
Heroku Dev Center Dev Center
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log in or Sign up
View categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
    • Buildpacks
  • Developer Tools
    • AI Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Node.js Behavior in Heroku
      • Working with Node.js
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
        • Working with Rails
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • Working with PHP
      • PHP Behavior in Heroku
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
      • Heroku Postgres Advanced (Limited GA)
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Inference Essentials
    • Inference API
    • Inference Quick Start Guides
    • AI Models
    • Tool Use
    • AI Integrations
    • Vector Database
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
    • Heroku AppLink
      • Working with Heroku AppLink
      • Heroku AppLink Reference
      • Getting Started with Heroku AppLink
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
    • Other Salesforce Integrations
  • Heroku Architecture
  • Stacks (operating system images)
  • Heroku-26 Stack

Heroku-26 Stack

Table of Contents [expand]

  • What’s new
  • Available software
  • Support period
  • Using Heroku-26
  • Upgrading to Heroku-26
  • Heroku-26 Docker images

Last updated May 19, 2026

This article describes the Heroku-26 stack, based on Ubuntu 26.04. What is a stack?

What’s new

This stack is now based on Ubuntu 26.04, compared to Ubuntu 24.04 used in the Heroku-24 stack.

See the upgrade notes for more detailed change information.

Available software

Every stack on Heroku supports different operating system packages and language runtime versions. This support is typically confined to software that was still actively developed by the respective maintainers at the time the stack was first released.

Language runtimes

For the most accurate information on supported language runtime versions, please check the individual language pages:

Buildpack Shorthand Runtime versions
.NET heroku/dotnet Runtime versions
Go heroku/go Runtime versions
Java heroku/java Runtime versions
Node.js heroku/nodejs Runtime versions
PHP heroku/php Runtime versions
Python heroku/python Runtime versions
Ruby heroku/ruby Runtime versions

Operating system packages

For a full list of operating system packages available on Heroku-26, please refer to article Ubuntu Packages on Heroku Stacks.

Support period

Heroku-26 is based on Ubuntu 26.04. It will be supported through April 2031. Learn more about Heroku’s stack update policy.

Using Heroku-26

Heroku-24 is currently the default stack for newly created Cedar apps. It is also the default builder / base image for Fir apps.

Using Heroku-26 on Cedar

You can specify a stack when creating a Cedar app:

$ heroku create --stack heroku-26

You may change the stack on an existing app; the next build performed will then use the new stack:

$ heroku stack:set heroku-26

If you are using app.json, you should also specify the stack there to ensure that your Review Apps and Heroku CI runs use the same stack:

{
  "stack": "heroku-26"
}

An existing app’s stack cannot be changed using app.json. The stack specified is only applied to newly created apps that are a Review App, a Heroku CI test run app, or an app created using a Heroku Button.

Using Heroku-26 on Fir

The stack property of a Fir app is always cnb, and the base image is tied to the CNB builder, optionally defined in an app’s project.toml:

[_]
schema-version = "0.2"

[io.buildpacks]
builder = "heroku/builder:26"

Upgrading to Heroku-26

Please refer to the stack upgrading guide to understand the procedures to follow when upgrading to a new stack.

We recommend that you monitor your application closely after migrating an app to the new stack to ensure it’s performing correctly.

Upgrade notes

There are currently no known breaking OS changes that require action when upgrading from Heroku-24 to Heroku-26. If you do find a compatibility issue, please let us know via a support ticket or by using the “Submit Feedback” button at the bottom of this page.

Heroku-26 Docker images

Heroku-26 is available as two Docker images:

  1. The run time image (heroku/heroku:26), which is recommended over the build image for most workloads.
  2. The build image (heroku/heroku:26-build), which is larger as it includes development headers and toolchains. It is only recommended for customers that need to compile source code or dependencies.

Use the following command in your Dockerfile to use Heroku-26 as your base image:

FROM heroku/heroku:26

We publish these images as multi-architecture images, supporting both the amd64 and arm64 CPU architectures. By default Docker will use the image architecture that matches the machine on which it is being run. To force the use of a different architecture, pass --platform linux/<architecture> to docker build or docker run commands, or use FROM --platform=linux/<architecture> IMAGE_NAME in your Dockerfile.

The default Linux user for these images is heroku, which does not have root permissions. If you need to modify locations outside of /home/heroku or /tmp you will need to switch back to the root user. To do this add USER root to your Dockerfile when building images, or pass --user root to any docker run commands.

To learn more about deploying Docker images, please refer to the Heroku Container Registry and Runtime documentation.

Feedback

Log in to submit feedback.

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2026 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices