diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | default.nix | 9 |
2 files changed, 13 insertions, 3 deletions
@@ -40,6 +40,13 @@ nix-build -A pkg # build the binary and add the ressources nix-build -A docker # build a docker container ``` +Publishing the container: + +```bash +docker load < $(nix-build -A docker) +docker push ??? +``` + ## Configuration of Guichet Guichet is configured using a simple JSON config file which is a dictionnary whose keys diff --git a/default.nix b/default.nix index cd17475..3cafd8c 100644 --- a/default.nix +++ b/default.nix @@ -38,7 +38,10 @@ in rec { cp -r templates static $out/ ''; }; - /*docker = pkgs.xxx { - - };*/ + docker = pkgs.dockerTools.buildImage { + name = "dxflrs/guichet"; + config = { + Cmd = [ "${pkg}/guichet" ]; + }; + }; } |