diff options
Diffstat (limited to 'universe/docker/cloud_run.nix')
-rw-r--r-- | universe/docker/cloud_run.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/universe/docker/cloud_run.nix b/universe/docker/cloud_run.nix new file mode 100644 index 000000000000..70be4040c36b --- /dev/null +++ b/universe/docker/cloud_run.nix @@ -0,0 +1,18 @@ +{ + pkgs ? import <nixpkgs> {}, + depot ? import <depot> {}, + ... +}: + +pkgs.dockerTools.buildLayeredImage { + name = "gemma"; + tag = "latest"; + config.ExposedPorts = { + "4242" = {}; + }; + config.Env = [ + "GEMMA_CONFIG=${./config.lisp}" + ]; + config.Cmd = [ "${depot.fun.gemma}/bin/gemma" ]; + maxLayers = 120; +} |