14 lines
309 B
Bash
Executable File
14 lines
309 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 setup
|
|
stack build --copy-bins
|
|
docker build . -t $IMAGE_NAME
|