diff options
author | Vincent Ambo <tazjin@google.com> | 2019-06-29T13·14+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-06-29T13·14+0100 |
commit | e2951dc9f5d7c51e919ab5d37cbbed8aabccd721 (patch) | |
tree | 94a7decf5684d72851b87b27883d6d1a4adc2915 /services/gemma/gemma-docker.nix | |
parent | 545d9a2db9fa775990f0631b9d6b3ac6aef65c5f (diff) | |
parent | 60532a541b4a1e2c19bb9de95f1ffd72d1579067 (diff) |
merge(gemma): Integrate Gemma into monorepo r/6
Diffstat (limited to 'services/gemma/gemma-docker.nix')
-rw-r--r-- | services/gemma/gemma-docker.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/services/gemma/gemma-docker.nix b/services/gemma/gemma-docker.nix new file mode 100644 index 000000000000..69cfdd4c1692 --- /dev/null +++ b/services/gemma/gemma-docker.nix @@ -0,0 +1,19 @@ +with import <nixpkgs> {}; +let + gemma = import ./default.nix; + entrypoint = writeScript "entrypoint.sh" '' + #!${stdenv.shell} + set -e + exec ${gemma}/bin/gemma + ''; +in dockerTools.buildImage { + name = "gemma"; + contents = gemma; # [ gemma ]; + config = { + Entrypoint = [ entrypoint ]; + WorkingDir = "/data"; + Volumes = { + "/data" = {}; + }; + }; +} |