buildpacks / community

Community content for the Cloud Native Buildpacks (CNB) project
https://buildpacks.io
Creative Commons Attribution 4.0 International
43 stars 24 forks source link

[Idea] Buildpack for any app that contains a Dockerfile #144

Closed collimarco closed 3 years ago

collimarco commented 3 years ago

What do you think about having a generic buildpack that can pack/build any app that contains a Dockerfile?

Basically it would be a fallback, similar to a simple docker build, but having that would make pack (and similar) more complete.

Also, if in production you have some apps that use pack and other that use docker build, you could always use the same CNB entrypoint, without wondering every time how the image was built (pack / plain docker).

dfreilich commented 3 years ago

In general, the Buildpacks project doesn't maintain any buildpacks themselves; it's the different vendors who do. Of those, I believe that Google Cloud Run has a mechanism which operates like that, building if there is a Dockerfile present, though I'm not sure whether it works with a "Dockerfile" buildpack, or separately.

dfreilich commented 3 years ago

The idea has been raised in the past, but there has been pushback from many of the members of the project. I think that introducing that mechanism would complicate the workings of pack significantly. Ultimately, though, we'd welcome a contribution to the Buildpacks Registry of a Buildpack which did that!