tvl-depot/gemma-docker.nix
2017-12-31 17:02:56 +01:00

19 lines
377 B
Nix

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" = {};
};
};
}