Skip to content

Commit

Permalink
feat(containers): lockpad/docker package
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrubek committed Oct 14, 2023
1 parent 12b62d6 commit 99dc470
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions containers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@
Volumes = {"/data" = {};};
};
};

"lockpad/docker" = pkgs.dockerTools.buildImage {
name = "lockpad";
tag = self.rev or "dirty";

copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [
self'.packages.cli
];
pathsToLink = ["/bin"];
};

config = {
Cmd = ["/bin/lockpad-cli"];
WorkingDir = "/app";
};
};
};
};
}

0 comments on commit 99dc470

Please sign in to comment.