Supported language runtimes and base images Stay organized with collections Save and categorize content based on your preferences.
This page describes the supported language runtimes and base images fordeployingservices orfunctions from source, andcontainer images built on scratch.
Base images are composed of an operating system stack and a language runtime:
- Astack is made up of a Linux distribution versionand system packages, such as OpenSSL and
curl. - A language runtime is the specific version of the programming language usedby your application.
Cloud Run supports multiple language runtimes, each of which isavailable through container base images provided byGoogle Cloud's buildpacks. Language runtimes aresupported only as long as they are supported by their respective open sourcecommunities.
It is the developer's responsibility to upgrade services to newerlanguage runtimes before it reaches end of support. Refer to theCloud Runruntime lifecycle for details.
The Cloud Run lifecycle policy does not apply to containers built outsideof Cloud Run.
Using language runtimes
Cloud Run language runtimes are used for the following:
- Deployingfunctions andservices
- Enablingautomatic security updates
- As base images forbuilding containers
Security and maintenance updates
Security and maintenance updates are available for generally availablelanguage runtimes. You can apply these updates automatically or manually depending on howyou configureautomatic security updates.Automatic security updates are enabled by default when deploying functions andservices to Cloud Run.
How to obtain base images
Base images are hosted in every region whereArtifact Registry is available.
There are three methods for specifying a base image:
RUNTIME_ID: Gives you the base image for the specifiedlanguage using its default stack. The base image will be taken from arepository in the sameREGIONwhere your service isdeployed. We recommend you specify theRUNTIME_IDfor most cases.STACK/RUNTIME_ID: An alias for the fullbase image path. The base image will be taken from a repository in the sameREGIONwhere your service is deployed. Use this optionif you need a specific system package in thestack.REGION-docker.pkg.dev/serverless-runtimes/STACK/runtimes/RUNTIME_ID:The full base image path. Use this option if you want full control over thespecific 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 systemstack, for example
google-24-full. - RUNTIME_ID with the language runtime ID used by your function, forexample
nodejs24.
For example, to reference the full base image path for the latest Node.jsbase image using thegoogle-24-full stack, hosted ineurope-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 |
|---|---|---|---|
| Node.js 24 | nodejs24 | ||
| Node.js 22 | nodejs22 | ||
| Node.js 20 | nodejs20 | ||
| Node.js 18 | nodejs18 | ||
| Node.js 16 | nodejs16 | google-18-full | google-18-full/nodejs16 |
| Node.js 14 | nodejs14 | google-18-full | google-18-full/nodejs14 |
| Node.js 12 | nodejs12 | google-18-full | google-18-full/nodejs12 |
| Node.js 10 | nodejs10 | google-18-full | google-18-full/nodejs10 |
| Node.js 8 | nodejs8 | Decommissioned | Decommissioned |
| Node.js 6 | nodejs6 | Decommissioned | Decommissioned |
Python
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| Python 3.14 | python314 | ||
| Python 3.13 | python313 | ||
| Python 3.12 | python312 | Python 3.11 | python311 |
| Python 3.10 | python310 | ||
| Python 3.9 | python39 | google-18-full | google-18-full/python39 |
| Python 3.8 | python38 | google-18-full | google-18-full/python38 |
| Python 3.7 | python37 | google-18-full | google-18-full/python37 |
Go
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| Go 1.26 (Preview) | go126 | ||
| Go 1.25 | go125 | ||
| Go 1.24 | go124 | ||
| Go 1.23 | go123 | ||
| Go 1.22 | go122 | ||
| Go 1.21 | go121 | ||
| Go 1.20 | go120 | ||
| Go 1.19 | go119 | ||
| Go 1.18 | go118 | ||
| Go 1.16 | go116 | google-18-full | google-18-full/go116 |
| Go 1.13 | go113 | google-18-full | google-18-full/go113 |
| Go 1.11 | go111 | Decommissioned | Decommissioned |
Java
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| Java 25 | java25 | ||
| Java 21 | java21 | ||
| Java 17 | java17 | ||
| Java 11 | java11 | google-18-full | google-18-full/java11 |
Ruby
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| Ruby 3.4 | ruby34 | ||
| Ruby 3.3 | ruby33 | ||
| Ruby 3.2 | ruby32 | ||
| Ruby 3.0 | ruby30 | google-18-full | google-18-full/ruby30 |
| Ruby 2.7 | ruby27 | google-18-full | google-18-full/ruby27 |
| Ruby 2.6 | ruby26 | google-18-full | google-18-full/ruby26 |
PHP
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| PHP 8.5 (Preview) | php85 | google-24-full (default) | google-24-full/php85 |
| PHP 8.4 | php84 | google-22-full (default) | google-22-full/php84 |
| PHP 8.3 | php83 | google-22-full (default) | google-22-full/php83 |
| PHP 8.2 | php82 | google-22-full (default) | google-22-full/php82 |
| PHP 8.1 | php81 | google-18-full | google-18-full/php81 |
| PHP 7.4 | php74 | google-18-full | google-18-full/php74 |
.NET
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| .NET 10 | dotnet10 | ||
| .NET 8 | dotnet8 | ||
| .NET 6 | dotnet6 | ||
| .NET Core 3 | dotnet3 | google-18-full | google-18-full/dotnet3 |
OS only
| Runtime | Runtime ID | Stacks | Runtime base image |
|---|---|---|---|
| OS only 24 | osonly24 | google-24 (default) | google-24/osonly24 |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.