Skip to content

A demo on how to build a small Docker image with Alpine and go cli tools

Notifications You must be signed in to change notification settings

JanAhrens/multi-stage-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-stage-go

This is a demo on how to build a small Docker image with Alpine Linux and Dockers multi-stage build feature that includes go cli tools.

To build the container:

docker build -t janahrens/multi-stage-go:latest .

To use the container:

docker run -v $PWD:/root -it janahrens/multi-stage-go:latest ./check.sh schema.yaml invalid-document.yaml

Check the containers contents and size:

docker image ls janahrens/multi-stage-go:latest
docker create --name tmp_$$ janahrens/multi-stage-go:latest
docker export tmp_$$ | tar tv | sort -k5 -r | head
docker rm tmp_$$

About

A demo on how to build a small Docker image with Alpine and go cli tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published