Created
July 15, 2021 18:18
-
-
Save antoinerg/669a8863fbd57b11905b448b47ff6297 to your computer and use it in GitHub Desktop.
nix-build a Docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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