Skip to content

Example showing how to build sources in a container and retreive the results

Notifications You must be signed in to change notification settings

gunnihinn/docker-build-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker build container example

This example shows how to use Docker to compile a file inside a container and return the results back to the host filesystem. Example use cases include packaging existing programs for different package managers where we maybe don’t want to spin up a full VM for each target distribution.

To obtain an out/hello.txt file in the current working directory, where the file was created inside a container we’ll build and spin up, run:

$ make

Changing the text written to the file in builder.sh will not cause a rebuild of the container, but re-running it will pick up any changes we make.

About

Example showing how to build sources in a container and retreive the results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published