From ee4e3607993c9bccce08510a1f7f0ac4c4c88434 Mon Sep 17 00:00:00 2001 From: Victor Date: Sat, 3 Dec 2022 15:19:25 +0100 Subject: [PATCH] fully working docker image --- .woodpecker.yml | 2 ++ flake.nix | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8d2264b..c958ae8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,3 +6,5 @@ pipeline: commands: - nix flake check - nix build '.#mdbook-toc' + - nix build '.#docker' + diff --git a/flake.nix b/flake.nix index 2bd0e62..499dbc3 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,12 @@ packages = rec { docker = pkgs.dockerTools.buildLayeredImage { name = "mdbook-plus"; - contents = mdbook-toc; + contents = [ + (pkgs.buildEnv { + name = "mdbook-env"; + paths = with pkgs; [ busybox mdbook mdbook-toc ]; + }) + ]; config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ]; }; mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {