DEV Community

Discussion on: Dockerfile Templates For All Programming languages

Collapse
 
bovermyer profile image
Ben Overmyer

I looked over the Go and PHP images. There's no benefit to using either one - they just wrap existing tool images and add metadata that will vary greatly between developers.

When I see a Dockerfile template for Go, I want to see a multistage build toolchain that produces a very slim binary inside a Docker image.

When I see a Dockerfile template for PHP, there are far too many possible ways to build a Docker image for such an app, so I'd err on the side of making several boilerplate images - one for a straight Composer build, one for a Laravel build, and one for a Symfony build. All of them would have to be multistage.

Collapse
 
gauthamp10 profile image
Gautham Prakash

The project was built for just to be able to run source directly and not for production purpose in the beginning. But now more people are asking for multistage build which are useful as mentioned for real world development. I didn't expect such an overwhelming response for such a project. So now I will try to add useful multistage builds ASAP. For now, if interested anyone could open a pull request and add one.

Thank you for your feedback.