Skip to content

A CLI tool to bake a docker image from a go repository

License

Notifications You must be signed in to change notification settings

rescribet/docker-go

Repository files navigation

docker-go

A CLI tool to dockerize your runnable Go app from scratch.

Usage

Install this project

$ go get github.com/fletcher91/docker-go
$ cd $GOPATH/github.com/fletcher91/docker-go
$ go install

When having downloaded an executable go project, run docker-go in the directory: $ docker-go

After which you can run your app in docker: $ docker run -t github.com/fletcher91/docker-go:latest

The final image is built from the scratch image, therefore they are generally between 5-20MB depending on the size of your (statically built) executable.

This project is based on the article Building Minimal Docker Containers for Go Applications by Nick Gauthier.

About

A CLI tool to bake a docker image from a go repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages