haproxy icon indicating copy to clipboard operation
haproxy copied to clipboard

Use multi-stage build

Open taliesins opened this issue 9 months ago • 1 comments

To minimize the size of the image we probably want to build haproxy in one container and then copy the build outputs into the next container. This way the build tools are not in the haproxy container (smaller/safer image).

https://docs.docker.com/build/building/multi-stage/ https://github.com/b4tman/docker-squid/blob/master/Dockerfile

taliesins avatar May 15 '24 09:05 taliesins