cryptpad-deuxfleurs.nix/docker.nix

28 lines
482 B
Nix
Raw Normal View History

2024-04-16 10:11:50 +00:00
{ pkgs ? import <nixpkgs> {}
2024-04-17 21:48:40 +00:00
2024-04-16 10:11:50 +00:00
, name ? "cryptpad"
, tag ? "nix-latest"
2024-04-17 21:48:40 +00:00
2024-04-16 10:11:50 +00:00
, withOnlyOffice ? true
2024-04-17 21:48:40 +00:00
, cryptpad ? pkgs.callPackage ./default.nix { inherit withOnlyOffice; }
}: let
cryptpad' = cryptpad.overrideAttrs {
postInstall = ''
ln -sf /cryptpad/customize $out/customize
'';
};
in pkgs.dockerTools.buildImage {
2024-04-16 10:11:50 +00:00
inherit name tag;
config = {
Cmd = [
2024-04-17 21:48:40 +00:00
(pkgs.lib.getExe cryptpad')
2024-04-16 10:11:50 +00:00
];
2024-04-17 21:48:40 +00:00
Volumes = {
"/cryptpad/customize" = {};
};
2024-04-16 10:11:50 +00:00
};
}