Skip to content

the-nix-way/nix-docker-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Docker examples

built with nix

Directory Docker image contents
go A simple Go web service
hello An image containing just the hello package
script An image wrapping a shell script

In each project, you can run the following to build and run the image:

nix build .
docker load < result
docker run -t ${IMAGE_NAME}:${IMAGE_HASH}

The IMAGE_NAME and IMAGE_HASH need to match the specific example.

All examples use Nix flakes.