Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a builder example section about buildpacks #117

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/configuration/builder-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ builder:
options: mode=max,image-manifest=true,oci-mediatypes=true
```

## [Building without a Dockerfile locally](#building-without-a-dockerfile-locally)

Your application image can also be built using [cloud native buildpacks](https://buildpacks.io/) instead of using a `Dockerfile` and the default `docker build` process. This example uses Heroku's [ruby](https://github.com/heroku/heroku-buildpack-ruby) and [Procfile](https://github.com/heroku/buildpacks-procfile) buildpack to build your final image.

``` yaml
pack:
builder: heroku/builder:24
buildpacks:
- heroku/ruby
- heroku/procfile
```

To provide any additional customizations to you can add a [project descriptor file](https://buildpacks.io/docs/for-app-developers/how-to/build-inputs/use-project-toml/)(project.toml) in the root of your application.

### [GHA cache configuration](#gha-cache-configuration)

To make it work on the GitHub action workflow, you need to set up the buildx and expose [authentication configuration for the cache](https://docs.docker.com/build/cache/backends/gha/#authentication).
Expand Down