News for hackers. Stuff that matters.
Re:Super small Docker image based on Alpine Linux by ploxiln on Wednesday December 23, 2015 @05:19PM (#10786013)
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 "make clean" or something. Each directive in the Dockerfile adds a layer, which adds container setup overhead, and also "locks in" all filesystem space usage at that point.

There are no comments on this comment yet.