mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
22 lines
400 B
Nix
22 lines
400 B
Nix
{ dockerTools, ruby, bundix, foodogsquaredLib }:
|
|
|
|
let name = s: "fds-ruby-on-rails-${ruby.version}${s}";
|
|
in dockerTools.buildImage {
|
|
name = name "";
|
|
|
|
copyToRoot = foodogsquaredLib.buildFDSEnv {
|
|
name = name "root";
|
|
paths = [ ruby bundix ];
|
|
};
|
|
|
|
runAsRoot = ''
|
|
mkdir -p /data
|
|
'';
|
|
|
|
config = {
|
|
Cmd = [ "/bin/bash" ];
|
|
WorkingDir = "/data";
|
|
Volumes."/data" = { };
|
|
};
|
|
}
|