Initial commit
This commit is contained in:
10
hello-world-docker/default.nix
Normal file
10
hello-world-docker/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
# From https://nix.dev/tutorials/nixos/building-and-running-docker-images.html
|
||||
{ pkgs ? import <nixpkgs> { }
|
||||
, pkgsLinux ? import <nixpkgs> { system = "x86_64-linux"; }
|
||||
}:
|
||||
pkgs.dockerTools.buildImage {
|
||||
name = "hello-docker";
|
||||
config = {
|
||||
Cmd = [ "${pkgsLinux.hello}/bin/hello" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user