Runtime delle funzioni Cloud Run

Le funzioni Cloud Run vengono eseguite in un ambiente costituito da una versione del sistema operativo con pacchetti aggiuntivi, supporto linguistico e la libreria Functions Frameworks che supporta e richiama la tua funzione. Questo ambiente è identificato dalla versione della lingua ed è noto come runtime. Sono disponibili più linguaggi di programmazione: Node.js, Python, Go, Java, Ruby, PHP e .NET. Per saperne di più, consulta la panoramica delle funzioni Cloud Run.

Runtime di Cloud Run Functions

I runtime sono disponibili in più lingue, con istruzioni specifiche per ciascuna lingua:

Programma di assistenza runtime

I runtime di Cloud Run Functions sono soggetti al ciclo di vita del runtime di Cloud Run e al programma di assistenza:

Node.js

Runtime ID runtime Stack Immagine di base runtime
Node.js 22 nodejs22
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/nodejs22
  • google-22-full/nodejs22
  • Node.js 20 nodejs20
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/nodejs20
  • google-22-full/nodejs20
  • Node.js 18 nodejs18
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/nodejs18
  • google-22-full/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 Dismesso Dismesso
    Node.js 6 nodejs6 Dismesso Dismesso

    Python

    Runtime ID runtime Stack Immagine di base runtime
    Python 3.13 python313
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/python313
  • google-22-full/python313
  • Python 3.12 python312
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/python312
  • google-22-full/python312
  • Python 3.11 python311
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/python311
  • google-22-full/python311
  • Python 3.10 python310
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/python310
  • google-22-full/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

    Vai

    Runtime ID runtime Stack Immagine di base runtime
    Go 1.24
    (solo anteprima)
    go124
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go124
  • google-22-full/go124
  • Go 1.23
    go123
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go123
  • google-22-full/go123
  • Go 1.22 go122
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go122
  • google-22-full/go122
  • Go 1.21 go121
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go121
  • google-22-full/go121
  • Go 1.20 go120
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go120
  • google-22-full/go120
  • Go 1.19 go119
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go119
  • google-22-full/go119
  • Go 1.18 go118
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/go118
  • google-22-full/go120
  • 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 Dismesso Dismesso

    Java

    Runtime ID runtime Stack Immagine di base runtime
    Java 21 java21
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/java21
  • google-22-full/java21
  • Java 17 java17
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/java17
  • google-22-full/java17
  • Java 11 java11 google-18-full google-18-full/java11

    Ruby

    Runtime ID runtime Stack Immagine di base runtime
    Ruby 3.4 ruby34
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/ruby34
  • google-22-full/ruby34
  • Ruby 3.3 ruby33
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/ruby33
  • google-22-full/ruby33
  • Ruby 3.2 ruby32
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/ruby32
  • google-22-full/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 ID runtime Stack Immagine di base runtime
    PHP 8.4 php84 google-22-full (predefinito) google-22-full/php84
    PHP 8.3 php83 google-22-full (predefinito) google-22-full/php83
    PHP 8.2 php82 google-22-full (predefinito) 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 ID runtime Stack Immagine di base runtime
    .NET 8 dotnet8
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/dotnet8
  • google-22-full/dotnet8
  • .NET 6 dotnet6
  • google-22 (valore predefinito)
  • google-22-full
  • google-22/dotnet6
  • google-22-full/dotnet6
  • .NET Core 3 dotnet3 google-18-full google-18-full/dotnet3