tvl-depot/services/gemma/gemma-docker.nix

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