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.
[ Parent
| on HN ]
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.