News for hackers. Stuff that matters.
Re:Dockerfmt: A Dockerfile Formatter by solatic on Wednesday April 09, 2025 @02:39PM (#43635795)
That's advice specifically for official images, and it dates back before multi-stage builds. Most people are not building official images. Most people benefit from clear encapsulation and separation of concerns. The Dockerfile sets up the environment to run the provisioning script, and a provisioning script does the actual provisioning. Official images are different because usually the provisioning script is hidden in an OS package installed with e.g. apk add (or are we going to pretend that OS packages are bad practice for the same reason?).

There are no comments on this comment yet.