From ed076bbd6fc22b32ea353ae6bd3cac79d039719a Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 1 Apr 2023 16:35:34 -0400 Subject: use layered docker images --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 5842997..2f84f29 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,7 @@ pkgs = import nixpkgs {inherit system;}; in { packages = - { + rec { teawiebot = with pkgs; python39Packages.buildPythonPackage { pname = "teawiebot"; @@ -41,11 +41,11 @@ propagatedBuildInputs = with pkgs.python39Packages; [hatchling discordpy requests]; }; container = with pkgs.dockerTools; - buildImage { + buildLayeredImage { name = "teawiebot"; tag = "latest"; - copyToRoot = [caCertificates]; - config.Cmd = ["${self.packages.${system}.teawiebot}/bin/teawiebot"]; + contents = [caCertificates]; + config.Cmd = ["${teawiebot}/bin/teawiebot"]; }; } // {default = self.packages.${system}.teawiebot;}; -- cgit v1.2.3