News for hackers. Stuff that matters.
Re:Using ARG in a Dockerfile – beware the gotcha by koito17 on Tuesday May 14, 2024 @04:55AM (#40353016)
I interpret each directive in a Dockerfile as creating a new layer of an image. So this ARG-before-FROM gotcha doesn't feel like a gotcha to me, but rather, the consequence of literally interpreting "ARG" and not knowing the side-effects of a directive in a Dockerfile. (Yes, even WORKDIR, ENTRYPOINT, and related instructions create a layer, albeit a 0-byte one)
Re:Using ARG in a Dockerfile – beware the gotcha by fireflash38 on Tuesday May 14, 2024 @06:43AM (#40353705)
It persists across every other new layer. It just doesn't persist across FROM.