fully working docker image

This commit is contained in:
Vivian 2022-12-03 15:19:25 +01:00
parent 24113d68bc
commit d234c7e70c
2 changed files with 8 additions and 1 deletions

View file

@ -6,3 +6,5 @@ pipeline:
commands:
- nix flake check
- nix build '.#mdbook-toc'
- nix build '.#docker'

View file

@ -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 {