github.com/dnephin/dobi@v0.15.0/examples/minimal-docker-image/README.md (about)

     1  
     2  # Example - Building minimal docker images
     3  
     4  This example demonstrates how to use ``dobi`` to build a minimal docker image,
     5  that does not contain build/compile dependencies. This is sometimes referred
     6  to as "squashing" an image. Building a small image is desirable when you want to
     7  distribute an application as a docker image.
     8  
     9  To create the image run:
    10  
    11      dobi dist-img
    12  
    13  Then run the image with:
    14  
    15      docker run -ti --rm example/hello:$USER
    16  
    17  or
    18  
    19      dobi run-dist
    20  
    21  
    22  To remove the binary and the image run:
    23  
    24      dobi binary:rm dist-img:rm