News for hackers. Stuff that matters.
Re:Docker's Second Death by hiram112 on Sunday December 06, 2020 @04:10PM (#25326662)
Isn't this the same?

RUN apk update && apk upgrade && apk add foo

Re:Docker's Second Death by yjftsjthsd-h on Sunday December 06, 2020 @04:26PM (#25326806)
In the simple case, yes it is, but it scales poorly; consider ex. https://github.com/docker-library/postgres/blob/b9c080857b88... which is 112 lines run together like that to keep things in a single layer. This is pretty bad for readability. Also, as sibling comment notes, that only works for RUN commands, not other or mixed groups of commands.
Re:Docker's Second Death by kelnos on Sunday December 06, 2020 @04:14PM (#25326709)
It is, but the syntax is uglier. Also imagine that you might want to do more than just RUN in a single layer. Maybe COPY some file into the container and then RUN something that uses it.
Re:Docker's Second Death by topspin on Sunday December 06, 2020 @08:38PM (#25328543)
Spend some time on docker hub and you'll find thousands of Dockerfiles with RUN <150 lines of && concatentated scripts>. It's dysfunctional.
Re:Docker's Second Death by wildpeaks on Sunday December 06, 2020 @10:12PM (#25329003)
Good to know, I often wondered why people produced these giant RUN statements instead of making multiple RUN.