From 7e2ed3a341ba5f522bc0498c1fcadd846273d079 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 29 Sep 2020 20:18:12 +0200 Subject: allow to pass docker image name to build.sh --- docker/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/build.sh b/docker/build.sh index bfbdd4b..3b374e6 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -1,7 +1,9 @@ #!/bin/bash # Copyright (c) 2020 Johannes Stoelp -if ! docker build -t matcha-box . ; then +image=${1:-match-box} + +if ! docker build -t $image . ; then echo "ERR: Failed to build docker image!" exit 1 fi -- cgit v1.2.3