Supported language runtimes and base images

This page describes the supported language runtimes and base images for deploying services or functions from source, and container images built on scratch .

Base images are composed of an operating system stack and a language runtime:

  • A stack is made up of a Linux distribution version and system packages, such as OpenSSL and curl .
  • A language runtime is the specific version of the programming language used by your application.

Cloud Run supports multiple language runtimes, each of which is available through container base images provided by Google Cloud's buildpacks . Language runtimes are supported only as long as they are supported by their respective open source communities.

It is the developer's responsibility to upgrade services to newer language runtimes before it reaches end of support. Refer to the Cloud Run runtime lifecycle for details.

The Cloud Run lifecycle policy does not apply to containers built outside of Cloud Run.

Using language runtimes

Cloud Run language runtimes are used for the following:

Security and maintenance updates

Security and maintenance updates are available for generally available language runtimes. You can apply these updates automatically or manually depending on how you configure automatic security updates . Automatic security updates are enabled by default when deploying functions and services to Cloud Run.

How to obtain base images

Base images are hosted in every region where Artifact Registry is available .

There are three methods for specifying a base image:

  • RUNTIME_ID : Gives you the base image for the specified language using its default stack. The base image will be taken from a repository in the same REGION where your service is deployed. We recommend you specify the RUNTIME_ID for most cases.
  • STACK / RUNTIME_ID : An alias for the full base image path. The base image will be taken from a repository in the same REGION where your service is deployed. Use this option if you need a specific system package in the stack .
  • REGION -docker.pkg.dev/serverless-runtimes/ STACK /runtimes/ RUNTIME_ID : The full base image path. Use this option if you want full control over the specific base image and the region where it's downloaded from.

For the three methods for specifying a base image, replace:

  • REGION with the preferred region, for example europe-west1 .
  • STACK with the preferred operating system stack , for example google-24-full .
  • RUNTIME_ID with the language runtime ID used by your function, for example nodejs24 .

For example, to reference the full base image path for the latest Node.js base image using the google-24-full stack, hosted in europe-west1 , use the following URL:

europe-west1-docker.pkg.dev/serverless-runtimes/google-24-full/runtimes/nodejs24

Node.js

Runtime
Runtime ID
Stacks
Runtime base image
Deprecation
Decommission
Node.js 24
nodejs24
  • google-24 (default)
  • google-24-full
  • 2028-04-30
    2028-10-31
    Node.js 22
    nodejs22
  • google-22 (default)
  • google-22-full
  • 2027-04-30
    2027-10-31
    Node.js 20
    nodejs20
  • google-22 (default)
  • google-22-full
  • 2026-04-30
    2026-10-30
    Node.js 18
    nodejs18
  • google-22 (default)
  • google-22-full
  • 2025-04-30
    2025-10-30
    Node.js 16
    nodejs16
    google-18-full
    2024-01-30
    2025-01-30
    Node.js 14
    nodejs14
    google-18-full
    2024-01-30
    2025-01-30
    Node.js 12
    nodejs12
    google-18-full
    2024-01-30
    2025-01-30
    Node.js 10
    nodejs10
    google-18-full
    2024-01-30
    2025-01-30
    Node.js 8
    nodejs8
    Decommissioned
    Decommissioned
    2020-06-05
    Feb 2021
    Node.js 6
    nodejs6
    Decommissioned
    Decommissioned
    2019-04-17
    Aug 2020

    Python

    Runtime
    Runtime ID
    Stacks
    Runtime base image
    Deprecation
    Decommission
    Python 3.14
    python314
  • google-24 (default)
  • google-24-full
  • 2030-10-10
    2031-04-10
    Python 3.13
    python313
  • google-22 (default)
  • google-22-full
  • 2029-10-10
    2030-04-10
    Python 3.12
    python312
  • google-22 (default)
  • google-22-full
  • 2028-10-02
    2029-04-02
    Python 3.11
    python311
  • google-22 (default)
  • google-22-full
  • 2027-10-24
    2028-04-24
    Python 3.10
    python310
  • google-22 (default)
  • google-22-full
  • 2026-10-04
    2027-04-04
    Python 3.9
    python39
    google-18-full
    2025-10-05
    2026-04-05
    Python 3.8
    python38
    google-18-full
    2024-10-14
    2025-10-14
    Python 3.7
    python37
    google-18-full
    2024-01-30
    2025-01-30

    Go

    Runtime
    Runtime ID
    Stacks
    Runtime base image
    Deprecation
    Decommission
    Go 1.26
    go126
  • google-24 (default)
  • google-24-full
  • Go 1.25
    go125
  • google-22 (default)
  • google-22-full
  • Go 1.24
    go124
  • google-22 (default)
  • google-22-full
  • 2026-09-02
    2027-03-02
    Go 1.23
    go123
  • google-22 (default)
  • google-22-full
  • 2026-02-21
    2026-08-21
    Go 1.22
    go122
  • google-22 (default)
  • google-22-full
  • 2026-01-28
    2026-07-28
    Go 1.21
    go121
  • google-22 (default)
  • google-22-full
  • 2025-09-03
    2026-03-03
    Go 1.20
    go120
  • google-22 (default)
  • google-22-full
  • 2024-05-01
    2025-05-01
    Go 1.19
    go119
  • google-22 (default)
  • google-22-full
  • 2024-04-30
    2025-01-30
    Go 1.18
    go118
  • google-22 (default)
  • google-22-full
  • 2024-01-30
    2025-01-30
    Go 1.16
    go116
    google-18-full
    2024-01-30
    2025-01-30
    Go 1.13
    go113
    google-18-full
    2024-01-30
    2025-01-30
    Go 1.11
    go111
    Decommissioned
    Decommissioned
    2020-08-05
    Feb 2021

    Java

    Runtime
    Runtime ID
    Stacks
    Runtime base image
    Deprecation
    Decommission
    Java 25
    java25
  • google-24 (default)
  • google-24-full
  • October 2031
    Java 21
    java21
  • google-22 (default)
  • google-22-full
  • September 2031
    Java 17
    java17
  • google-22 (default)
  • google-22-full
  • October 2027
    Java 11
    java11
    google-18-full
    2024-10-31
    2025-10-31

    Ruby

    Runtime
    Runtime ID
    Stacks
    Runtime base image
    Deprecation
    Decommission
    Ruby 4.0
    ruby40
    google-24-full (default)
    2029-03-31
    2029-09-30
    Ruby 3.4
    ruby34
  • google-22 (default)
  • google-22-full
  • 2028-03-31
    2028-09-30
    Ruby 3.3
    ruby33
  • google-22 (default)
  • google-22-full
  • 2027-03-31
    2027-09-30
    Ruby 3.2
    ruby32
  • google-22 (default)
  • google-22-full
  • 2026-03-31
    2026-09-30
    Ruby 3.0
    ruby30
    google-18-full
    2024-03-31
    2025-03-31
    Ruby 2.7
    ruby27
    google-18-full
    2024-01-30
    2025-01-30
    Ruby 2.6
    ruby26
    google-18-full
    2024-01-30
    2025-01-30

    PHP

    Runtime Runtime ID Stacks Runtime base image Deprecation Decommission
    PHP 8.5
    php85 google-24-full (default) google-24-full/php85 2029-12-31 2030-06-30
    PHP 8.4
    php84 google-22-full (default) google-22-full/php84 2028-12-31 2029-06-30
    PHP 8.3
    php83 google-22-full (default) google-22-full/php83 2027-12-31 2028-06-30
    PHP 8.2
    php82 google-22-full (default) google-22-full/php82 2026-12-31 2027-06-30
    PHP 8.1
    php81 google-18-full google-18-full/php81 2025-12-31 2026-06-30
    PHP 7.4
    php74 google-18-full google-18-full/php74 2024-01-30 2025-01-30

    .NET

    Runtime
    Runtime ID
    Stacks
    Runtime base image
    Deprecation
    Decommission
    .NET 10
    dotnet10
  • google-24 (default)
  • google-24-full
  • 2028-11-14
    2029-05-14
    .NET 8
    dotnet8
  • google-22 (default)
  • google-22-full
  • 2026-11-10
    2027-05-10
    .NET 6
    dotnet6
  • google-22 (default)
  • google-22-full
  • 2024-11-12
    2025-11-12
    .NET Core 3
    dotnet3
    google-18-full
    2024-01-30
    2025-01-30

    OS only

    Runtime Runtime ID Stacks Runtime base image Deprecation Decommission
    OS only 24
    osonly24 google-24 (default) google-24/osonly24 April 30, 2029
    Create a Mobile Website
    View Site in Mobile | Classic
    Share by: