tvl-depot/deploy/cloud_run.nix
William Carroll 4e0b18506f Rename docker -> deploy
I think the name deploy is more representative of the purpose of this directory
since docker is just one of a few tools that I'm using to deploy software.
2020-01-31 16:29:22 +00:00

18 lines
322 B
Nix

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