mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
21 lines
370 B
Nix
21 lines
370 B
Nix
{ dockerTools, foodogsquaredLib, nodejs, bun, pnpm }:
|
|
|
|
dockerTools.buildImage {
|
|
name = "fds-js-backend";
|
|
|
|
copyToRoot = foodogsquaredLib.buildFDSEnv {
|
|
name = "fds-js-backend-root";
|
|
paths = [ nodejs bun pnpm ];
|
|
};
|
|
|
|
runAsRoot = ''
|
|
mkdir -p /data
|
|
'';
|
|
|
|
config = {
|
|
Cmd = [ "/bin/bash" ];
|
|
WorkingDir = "/data";
|
|
Volumes."/data" = { };
|
|
};
|
|
}
|