Skip to content

Instantly share code, notes, and snippets.

@antoinerg
Created July 15, 2021 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoinerg/669a8863fbd57b11905b448b47ff6297 to your computer and use it in GitHub Desktop.
Save antoinerg/669a8863fbd57b11905b448b47ff6297 to your computer and use it in GitHub Desktop.
nix-build a Docker image
{ pkgs ? import <nixpkgs> { system = "x86_64-linux"; } }:
pkgs.dockerTools.buildImage {
name = "hello-docker";
config = {
Cmd = [ "${pkgs.hello}/bin/hello" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment