about summary refs log blame commit diff
path: root/deploy/cloud_run.nix
blob: 70be4040c36bf452aed22d06f069fbe3b0ff0513 (plain) (tree)
1
2
3
4
5
6
7
8
9




                             

                                    
                 
                 






                                                  

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