about summary refs log tree commit diff
path: root/gemma-docker.nix
blob: 69cfdd4c1692173bffd0fa2676e37d8623d740a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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" = {};
    };
  };
}