Adding a deploy.nix to output docker images based on the <briefcase>.blog derivation. See the deploy/README.md docs for more information.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  pkgs ? import <nixpkgs> {},
 | 
						|
  briefcase ? import <briefcase> {},
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
pkgs.dockerTools.buildLayeredImage {
 | 
						|
  name = "blog";
 | 
						|
  tag = "latest";
 | 
						|
  config.ExposedPorts = {
 | 
						|
    "4242" = {};
 | 
						|
  };
 | 
						|
  config.Cmd = [ "${briefcase.blog}/bin/server" ];
 | 
						|
  maxLayers = 120;
 | 
						|
}
 |