13 lines
		
	
	
		
			297 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			297 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| # Date: 12/27/2022
 | |
| # Author: James Eversole
 | |
| # ISC License
 | |
| # This script completes a stack build and then builds a docker image
 | |
| # containing Purr. The image name is the first argument to the script.
 | |
| 
 | |
| IMAGE_NAME=${1:-"purr"}
 | |
| 
 | |
| stack build --copy-bins
 | |
| docker build . -t $IMAGE_NAME
 |