nixos-config/devcontainers/js-backend.nix

21 lines
370 B
Nix
Raw Normal View History

{ dockerTools, foodogsquaredLib, nodejs, bun, pnpm }:
2024-10-26 10:35:21 +00:00
dockerTools.buildImage {
name = "fds-js-backend";
2024-10-26 10:35:21 +00:00
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = "fds-js-backend-root";
2024-10-26 10:35:21 +00:00
paths = [ nodejs bun pnpm ];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
2024-10-26 10:35:21 +00:00
}