minimal-docker-image

command
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Example - Building minimal docker images

This example demonstrates how to use dobi to build a minimal docker image, that does not contain build/compile dependencies. This is sometimes referred to as "squashing" an image. Building a small image is desirable when you want to distribute an application as a docker image.

To create the image run:

dobi dist-img

Then run the image with:

docker run -ti --rm example/hello:$USER

or

dobi run-dist

To remove the binary and the image run:

dobi binary:rm dist-img:rm

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL