19 lines
377 B
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" = {};
|
|
};
|
|
};
|
|
}
|