News for hackers. Stuff that matters.
Re:Optimizing Docker image size and why it matters by qbasic_forever on Thursday January 06, 2022 @04:53PM (#29830804)
You don't have to do this anymore, the buildkit frontend for docker has a new feature that supports multiline heredoc strings for commands: https://www.docker.com/blog/introduction-to-heredocs-in-dock... It's a game changer but unfortunately barely mentioned anywhere.
Re:Optimizing Docker image size and why it matters by chessmango on Friday January 07, 2022 @02:35AM (#29836166)
Yeah, been using this myself for a whole bunch of sanity. Until buildkit is the default though, I wouldn't expect it to gain too much traction.
Re:Optimizing Docker image size and why it matters by pstuart on Thursday January 06, 2022 @06:49PM (#29832427)
Wow, that deserves its own Tell HN ;-)

Thanks for the tip!