diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-26 09:32:28 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-26 09:32:28 +0200 |
commit | 10bdee10cf6947ec6dd0ba5040d7274d6c3316a7 (patch) | |
tree | 1c35e7bbf41e3e711d38d92e44e6a81a3cb3dc9d | |
parent | ef67706cb47e8e409591884756059926c9cd52be (diff) | |
download | guichet-10bdee10cf6947ec6dd0ba5040d7274d6c3316a7.tar.gz guichet-10bdee10cf6947ec6dd0ba5040d7274d6c3316a7.zip |
build a container from nix
-rw-r--r-- | flake.nix | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -18,7 +18,7 @@ ]; }; src = ./.; - bottin = pkgs.buildGoApplication { + guichet = pkgs.buildGoApplication { pname = "guichet"; version = "0.1.0"; src = src; @@ -38,9 +38,16 @@ platforms = platforms.linux; }; }; + container = pkgs.dockerTools.buildImage { + name = "dxflrs/guichet"; + config = { + Entrypoint = "${guichet}/bin/guichet"; + }; + }; in { - packages.x86_64-linux.bottin = bottin; - packages.x86_64-linux.default = bottin; + packages.x86_64-linux.guichet = guichet; + packages.x86_64-linux.container = container; + packages.x86_64-linux.default = guichet; devShell.x86_64-linux = pkgs.mkShell { nativeBuildInputs = [ pkgs.go pkgs.gomod2nix ]; }; }; |