build(nix): reorganize `enarx-docker` package layout
Provide a an image with a more conventional, singular `/bin/enarx`
meta.mainProgram = name;
};
- enarx-docker = pkgs.dockerTools.buildImage {
- name = "${cargoToml.package.name}-docker";
- tag = "${cargoToml.package.version}";
- config.Cmd = [ "${self.packages.${system}.enarx}/bin/enarx" ];
+ "${name}-docker" = pkgs.dockerTools.buildImage {
+ inherit name;
+ tag = version;
+ runAsRoot = ''
+ install -D "${self.packages.${system}."${name}-static"}/bin/${name}" "/bin/${name}"
+ '';
+ config.Cmd = [ "enarx" ];
+ config.Env = [ "PATH=/bin" ];
};
};
