flake.nix: Add /bin/sh to Docker image for fly ssh console

This commit is contained in:
Zhaofeng Li 2023-01-01 20:59:02 -07:00
parent ee16664046
commit 06332b7cc3

View file

@ -38,6 +38,11 @@
attic-server-image = pkgs.dockerTools.buildImage {
name = "attic-server";
tag = "main";
copyToRoot = [
# Minimal `/bin/sh` for `fly ssh console`
pkgs.busybox-sandbox-shell
packages.attic-server
];
config = {
Entrypoint = [ "${packages.attic-server}/bin/atticd" ];
Cmd = [ "--mode" "api-server" ];