Skip to content

Example of putting a Golang service into docker scratch image

License

Notifications You must be signed in to change notification settings

fuxu/gohello-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gohello

This is an example of putting a golang service into docker scratch image

It is almost the smallest possiable docker image

Prepare

$ tar cv --files-from /dev/null | docker import - scratch

Docker Version < 17.05

$ sh build.sh

Docker Version >= 17.05

$ docker build -t fuxu/gohello -f Dockerfile.multi-stage .

Run

$ docker run -it --rm -p 8080:8080 --name hello fuxu/gohello

Reference:

About

Example of putting a Golang service into docker scratch image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published