One really easy one: write a shell script to do most of the image building (run by the Dockerfile), instead of adding a bunch of RUN directives in the Dockerfile, especially if you clean up intermediate files with a &quot;make clean&quot; or something. Each directive in the Dockerfile adds a layer, which adds container setup overhead, and also &quot;locks in&quot; all filesystem space usage at that point.