News for hackers. Stuff that matters.
Re:Buildpacks vs. Dockerfiles by ilkkal on Monday February 08, 2021 @07:55AM (#26063804)
I’m sure it’s usually just a case of “thinking while typing”, but I find it surprising how often articles about Docker stuff get some basic details a bit wrong. In the very first code example there is a RUN instruction where the author probably meant to have a CMD instruction, and they talk about BuildKit and build cache optimisation even though that was always something to think about, way before BuildKit was a thing.

I’m not trying to say I know everything or that the article is wrong or bad, but it’s an observation I’ve made.

Re:Buildpacks vs. Dockerfiles by codefinger on Monday February 08, 2021 @09:56AM (#26065281)
I think this is exactly why people should use Buildpacks over Dockerfiles. I've seen so many Dockerfiles that are wrong, or even introduce security problems.
Re:Buildpacks vs. Dockerfiles by toong on Monday February 08, 2021 @08:19AM (#26064013)
Might have been an intentional mistake ? It fits the arguments pro build-packs.
Re:Buildpacks vs. Dockerfiles by ilkkal on Monday February 08, 2021 @08:21AM (#26064033)
The RUN? I thought about that but I don’t see how that would work. Or is the argument that Dockerfiles are just too hard?

(An argument I’m not unsympathetic to)

Re:Buildpacks vs. Dockerfiles by mewpmewp2 on Monday February 08, 2021 @09:45AM (#26065128)
Yeah, argument is they might be prone to errors.
Re:Buildpacks vs. Dockerfiles by genlesperance on Monday February 08, 2021 @11:13AM (#26066398)
Hi @ilkkal. Thank you for the note - I've corrected the directive!