about summary refs log tree commit diff
path: root/services/gemma/gemma-docker.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-06-29T13·13+0100
committerVincent Ambo <tazjin@google.com>2019-06-29T13·13+0100
commit60532a541b4a1e2c19bb9de95f1ffd72d1579067 (patch)
treeb8cbdf87bc5cf8d3e27835f034aa14d7c44a286f /services/gemma/gemma-docker.nix
parent61be253d6baa99f0a2208425b8a03b444bb1b184 (diff)
refactor(gemma): Move Gemma source into monorepo stucture
Diffstat (limited to 'services/gemma/gemma-docker.nix')
-rw-r--r--services/gemma/gemma-docker.nix19
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" = {};
+    };
+  };
+}