Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT...
by annymsMthd on Monday October 21, 2019 @11:54AM
(#21313694)
Multistage builds do not squash at the end.
Re:Show HN: Nginx Image with HTTP/3 (QUIC), TLS1.3 with 0-RT...
by chatmasta on Monday October 21, 2019 @06:33PM
(#21318277)
You can do this with experimental flags [0] and --squash [1] [2]
[0] https://github.com/moby/buildkit/blob/master/frontend/docker...
[1] https://geraldonit.com/2017/11/13/how-to-create-small-docker...
[2] https://docs.docker.com/engine/reference/commandline/image_b...
This pattern of concatenating commands to have a minimal image is a workaround from times when multi-stage builds were not available.