10 lines
292 B
Nix
10 lines
292 B
Nix
# 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" ];
|
|
};
|
|
} |