fully working docker image
This commit is contained in:
parent
24113d68bc
commit
d234c7e70c
2 changed files with 8 additions and 1 deletions
|
@ -6,3 +6,5 @@ pipeline:
|
|||
commands:
|
||||
- nix flake check
|
||||
- nix build '.#mdbook-toc'
|
||||
- nix build '.#docker'
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue