Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Builder Generik
Buildpacks memiliki builder generik default yang membuat image
container yang didesain untuk dijalankan pada layanan Google Cloud , termasuk, tetapi tidak terbatas pada:
Google Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine, dan
fungsi Cloud Run.
Builder generik buildpack:
Otomatis mendeteksi bahasa kode sumber Anda.
Menentukan apakah kode sumber tersebut merupakan aplikasi (layanan) atau fungsi.
Membangun kode sumber Anda menjadi image container yang dapat di-deploy.
Builder generik itu sendiri adalah image container yang dihosting secara publik di Container Registry.
Untuk selalu menggunakan versi dan sistem operasi terbaru, Anda dapat menentukan tag latest. Tag latest ditetapkan secara default ke versi google-22
builder generik dan digunakan saat Anda menjalankan perintah gcloud run deploy.
Jika Anda perlu memasang pin pada suatu versi, lihat petunjuk tentang cara
Menggunakan builder tertentu.
Buildpack juga memublikasikan builder yang digunakan untuk membangun aplikasi dalam container untuk runtime generasi kedua App Engine.
Builder App Engine menyertakan buildpack tambahan dan konfigurasi khusus App Engine. Misalnya, builder tersebut dioptimalkan untuk
kecepatan eksekusi dan update otomatis. Builder didasarkan pada bahasa runtime dan
sistem operasi:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-25 UTC."],[[["\u003cp\u003eThe Buildpacks generic builder creates container images for deployment on various Google Cloud services, such as Google Kubernetes Engine, Cloud Run, and App Engine.\u003c/p\u003e\n"],["\u003cp\u003eThis generic builder automatically detects the source code's language, determines if it's an application or function, and then builds it into a deployable container image.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elatest\u003c/code\u003e tag for the generic builder defaults to the \u003ccode\u003egoogle-22\u003c/code\u003e version, which runs on Ubuntu 22, but you can use specific versions like \u003ccode\u003ev1\u003c/code\u003e or \u003ccode\u003egoogle-22\u003c/code\u003e to pin to a particular operating system and set of supported languages.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine builders provide optimized containerization for App Engine second-generation runtimes, featuring additional buildpacks, configurations, and language version support based on Ubuntu 18 and Ubuntu 22.\u003c/p\u003e\n"],["\u003cp\u003eThe generic builder supports a variety of languages including Python, Node.js, Java, Go, Ruby, PHP, and .NET Core, with different supported versions depending on if using \u003ccode\u003ebuilder:google-22\u003c/code\u003e or \u003ccode\u003ebuilder:v1\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Builders\n\nGeneric Builder\n---------------\n\nBuildpacks has a default generic builder that creates container\nimages designed to run on Google Cloud services, including but not limited to:\nGoogle Kubernetes Engine, GKE Enterprise, Cloud Run, App Engine, and\nCloud Run functions.\n\nThe buildpacks generic builder:\n\n1. 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.\n2. Determines if that source code is an application (service) or function.\n3. Builds your source code into a deployable container image.\n\nThe generic builder itself is a container image that's publicly hosted on\nContainer Registry.\n\n### Default builder\n\nTo always use the most recent version and operating system, you can specify the\n`latest` tag. The `latest` tag defaults to the `google-22` version of the\ngeneric builder and is used when you run the `gcloud run deploy` command.\nIf you need to pin to a version, see the instructions about how to\n[Use a specific builder](/docs/buildpacks/use-a-specific-builder).\n\n### `builder:google-22` supported languages\n\n### `builder:v1` supported languages\n\nApp Engine builder\n------------------\n\nBuildpacks also publish the builders that are used to\ncontainerize applications for the App Engine\n[second-generation runtimes](/appengine/docs/standard/runtimes).\n\nThe App Engine builders include additional buildpacks and\nApp Engine-specific configurations. For example, they are optimized for\nexecution speed and automatic updates. Builders are by runtime language and\noperating system:\n\nWhat's next\n-----------\n\n- [Use a specific builder](/docs/buildpacks/use-a-specific-builder)\n- [Build an application](/docs/buildpacks/build-application)\n- [Build a function](/docs/buildpacks/build-function)"]]