| I love docker, but I really wish they would change a couple things. I wish there was a way to say: LAYER foo
RUN unpack_some_large_package
RUN build it
RUN install it
RUN delete stuff
LAYER bar
because the normal way of using docker makes really really large images.and the efficient use of docker is unreadable and hard to maintain: RUN unpack_some_large_package && build it && install it && delete stuff
thing is - if you do it this way you can hack gigabytes off your image sizesThis is lots harder nowadays over vpn. I know there's docker squash, but that is a hack on many levels. Then there's the firewall thing and last, I'd like to have my own private repository - where docker wont' and can't pull from other machines. |
https://docs.docker.com/develop/develop-images/multistage-bu...