## Generic Builder

Buildpacks has a default generic builder that creates container
images designed to run on Google Cloud services, including but not limited to:
Google Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine, and
Cloud Run functions.

The buildpacks generic builder:

1. Automatically detects the language of your source code. The buildpacks generic builder scans common project configuration files to determine the specific language version. For example, if the builder detects the source code as Node.js, it then inspects the `engines` field in the `package.json` file to determine a specific version of Node.js. If the builder can't determine a specific version, it uses the latest available version.
2. Determines if that source code is an application (service) or function.
3. Builds your source code into a deployable container image.

The generic builder itself is a container image that's publicly hosted on
Container Registry.

| Tag | Location | Operating system |
|---|---|---|
| `latest` | [gcr.io/buildpacks/builder:latest](https://gcr.io/buildpacks/builder:latest) | Ubuntu 24. The `latest` tag defaults to the generic builder version `google-24`. |
| `google-24` | [gcr.io/buildpacks/builder:google-24](https://gcr.io/buildpacks/builder:google-24) | Ubuntu 24 |
| `google-22` | [gcr.io/buildpacks/builder:google-22](https://gcr.io/buildpacks/builder:google-22) | Ubuntu 22 |
| `v1` | [gcr.io/buildpacks/builder:v1](https://gcr.io/buildpacks/builder:v1) | Ubuntu 18 |

### Default builder

To always use the most recent version and operating system, you can specify the
`latest` tag. The `latest` tag defaults to the `google-24` version of the
generic builder and is used when you run the `gcloud run deploy` command.
If you need to pin to a version, see the instructions about how to
[Use a specific builder](https://docs.cloud.google.com/docs/buildpacks/use-a-specific-builder.md.txt).

### `builder:google-24` supported runtimes

| Language | Supported Versions | Applications | Functions |
|---|---|---|---|
| [Python](https://docs.cloud.google.com/docs/buildpacks/python.md.txt) | 3.13.x | ✓ | ✓ |
|   | 3.14.x | ✓ | ✓ |
|   | 3.15.x | ✓ | ✓ |
| [Node.js](https://docs.cloud.google.com/docs/buildpacks/nodejs.md.txt) | 22.x.x | ✓ | ✓ |
|   | 24.x.x | ✓ | ✓ |
|   | 26.x.x | ✓ | ✓ |
| [Go](https://docs.cloud.google.com/docs/buildpacks/go.md.txt) | 1.x | ✓ | ✓ |
| [Java](https://docs.cloud.google.com/docs/buildpacks/java.md.txt) | 17 | ✓ | ✓ |
|   | 21 | ✓ | ✓ |
|   | 25 | ✓ | ✓ |
| [Ruby](https://docs.cloud.google.com/docs/buildpacks/ruby.md.txt) | 3.2.x | ✓ | ✓ |
|   | 3.3.x | ✓ | ✓ |
|   | 3.4.x | ✓ | ✓ |
|   | 4.0.x | ✓ | ✓ |
| [PHP](https://docs.cloud.google.com/docs/buildpacks/php.md.txt) | 8.2.x | ✓ | ✓ |
|   | 8.3.x | ✓ | ✓ |
|   | 8.4.x | ✓ | ✓ |
|   | 8.5.x | ✓ | ✓ |
| .NET Core | 8.x.x | ✓ | ✓ |
|   | 10.x.x | ✓ | ✓ |
| [OS only](https://docs.cloud.google.com/docs/buildpacks/osonly.md.txt) |   | ✓ |   |
| [Static](https://docs.cloud.google.com/docs/buildpacks/static.md.txt) |   | ✓ |   |

### `builder:google-22` supported runtimes

| Language | Supported Versions | Applications | Functions |
|---|---|---|---|
| [Python](https://docs.cloud.google.com/docs/buildpacks/python.md.txt) | 3.10.x | ✓ | ✓ |
|   | 3.11.x | ✓ | ✓ |
|   | 3.12.x | ✓ | ✓ |
|   | 3.13.x | ✓ | ✓ |
| [Node.js](https://docs.cloud.google.com/docs/buildpacks/nodejs.md.txt) | 12.x.x | ✓ | ✓ |
|   | 14.x.x | ✓ | ✓ |
|   | 16.x.x | ✓ | ✓ |
|   | 18.x.x | ✓ | ✓ |
|   | 20.x.x | ✓ | ✓ |
|   | 22.x.x | ✓ | ✓ |
|   | 24.x.x | ✓ | ✓ |
| [Java](https://docs.cloud.google.com/docs/buildpacks/java.md.txt) | 8 |   | ✓ |
|   | 11 | ✓ | ✓ |
|   | 17 | ✓ | ✓ |
|   | 21 | ✓ | ✓ |
| [Go](https://docs.cloud.google.com/docs/buildpacks/go.md.txt) | 1.x | ✓ | ✓ |
| [Ruby](https://docs.cloud.google.com/docs/buildpacks/ruby.md.txt) | 3.1.x | ✓ | ✓ |
|   | 3.2.x | ✓ | ✓ |
|   | 3.3.x | ✓ | ✓ |
|   | 3.4.x | ✓ | ✓ |
| [PHP](https://docs.cloud.google.com/docs/buildpacks/php.md.txt) | 8.1.x | ✓ | ✓ |
|   | 8.2.x | ✓ | ✓ |
|   | 8.3.x | ✓ | ✓ |
|   | 8.4.x | ✓ | ✓ |
| .NET Core | 6.x | ✓ | ✓ |
|   | 7.x | ✓ | ✓ |
|   | 8.x | ✓ | ✓ |

### `builder:v1` supported languages

| Language | Supported Versions | Applications | Functions |
|---|---|---|---|
| [Python](https://docs.cloud.google.com/docs/buildpacks/python.md.txt) | 3.7.x | ✓ | ✓ |
|   | 3.8.x | ✓ | ✓ |
|   | 3.9.x | ✓ | ✓ |
|   | 3.10.x | ✓ | ✓ |
|   | 3.11.x | ✓ | ✓ |
| [Node.js](https://docs.cloud.google.com/docs/buildpacks/nodejs.md.txt) | 8.x.x | ✓ | ✓ |
|   | 12.x.x | ✓ | ✓ |
|   | 14.x.x | ✓ | ✓ |
|   | 16.x.x | ✓ | ✓ |
|   | 18.x.x | ✓ | ✓ |
|   | 20.x.x | ✓ | ✓ |
| [Java](https://docs.cloud.google.com/docs/buildpacks/java.md.txt) | 8. |   | ✓ |
|   | 11 | ✓ | ✓ |
|   | 17 | ✓ | ✓ |
| [Go](https://docs.cloud.google.com/docs/buildpacks/go.md.txt) | 1.x | ✓ | ✓ |
| [Ruby](https://docs.cloud.google.com/docs/buildpacks/ruby.md.txt) | 2.5.x | ✓ | ✓ |
|   | 2.6.x | ✓ | ✓ |
|   | 2.7.x | ✓ | ✓ |
|   | 3.0.x | ✓ | ✓ |
|   | 3.1.x | ✓ | ✓ |
|   | 3.2.x | ✓ | ✓ |
|   | 3.3.x | ✓ | ✓ |
| [PHP](https://docs.cloud.google.com/docs/buildpacks/php.md.txt) | 7.4.x | ✓ | ✓ |
|   | 8.0.x | ✓ | ✓ |
|   | 8.1.x | ✓ | ✓ |
|   | 8.2.x | ✓ | ✓ |
| .NET Core | 3.1.x | ✓ | ✓ |
|   | 6.x | ✓ | ✓ |
|   | 7.x | ✓ | ✓ |
|   | 8.x | ✓ | ✓ |

## App Engine builder

Buildpacks also publish the builders that are used to
containerize applications for the App Engine
[second-generation runtimes](https://docs.cloud.google.com/appengine/docs/standard/runtimes).

The App Engine builders include additional buildpacks and
App Engine-specific configurations. For example, they are optimized for
execution speed and automatic updates. Builders are by runtime language and
operating system:

| Language | Operating System | Location | Available Versions |
|---|---|---|---|
| Python | Ubuntu 18 | [http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/python](http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/build/python) | Python 3.7, 3.8, 3.9, 3.10, 3.11 |
|   | Ubuntu 22 | [http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/python](http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/build/python) | Python 3.10, 3.11, 3.12, 3.13 |
|   | Ubuntu 24 | [http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/python](http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/build/python) | Python 3.14, 3.15 |
| Node.js | Ubuntu 18 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/nodejs> | Node.js 10, 12, 14 |
|   | Ubuntu 22 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/nodejs> | Node.js 18, 20 |
|   | Ubuntu 24 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/nodejs> | Node.js 24, 26 |
| Go | Ubuntu 18 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/go> | Go 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20 |
|   | Ubuntu 22 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/go> | Go 1.16, 1.17, 1.18, 1.19, 1.20, 1.21, 1.22, 1.23, 1.24, 1.25 |
|   | Ubuntu 24 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/go> | Go 1.26, 1.27 |
| Java | Ubuntu 18 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/java> | Java 8, 11 |
|   | Ubuntu 22 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/java> | Java 17, 21 |
|   | Ubuntu 24 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/java> | Java 25 |
| PHP | Ubuntu 18 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/php> | PHP 7.2, 7.3, 7.4, 8.1 |
|   | Ubuntu 22 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/php> | PHP 8.2, 8.3, 8.4 |
| PHP | Ubuntu 24 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/php> | PHP 8.5 |
| Ruby | Ubuntu 18 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-18-full/builder/ruby> | Ruby 2.5, 2.6. 2.7, 3.0, 3.1 |
|   | Ubuntu 22 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-22-full/builder/ruby> | Ruby 3.2, 3.3, 3.4 |
|   | Ubuntu 24 | <http://us-central1-docker.pkg.dev/serverless-runtimes/google-24-full/builder/ruby> | Ruby 4.0 |

## What's next

- [Use a specific builder](https://docs.cloud.google.com/docs/buildpacks/use-a-specific-builder.md.txt)
- [Build an application](https://docs.cloud.google.com/docs/buildpacks/build-application.md.txt)
- [Build a function](https://docs.cloud.google.com/docs/buildpacks/build-function.md.txt)