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.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			322 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			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;
 | |
| }
 |