diff --git a/DOCKER/build.sh b/DOCKER/build.sh index 0faea11c8..079f8c5d7 100755 --- a/DOCKER/build.sh +++ b/DOCKER/build.sh @@ -6,15 +6,15 @@ if [ -z "$TAG" ]; then TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) fi if [ -z "$TAG" ]; then - echo "Please specify a tag." - exit 1 + echo "Please specify a tag." + exit 1 fi TAG_NO_PATCH=${TAG%.*} -read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r +read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? [y/N] " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then - docker build -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" . + docker build -f ./Dockerfile -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" .. fi diff --git a/DOCKER/push.sh b/DOCKER/push.sh index 040704bfe..9ce12f79e 100755 --- a/DOCKER/push.sh +++ b/DOCKER/push.sh @@ -6,13 +6,13 @@ if [ -z "$TAG" ]; then TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) fi if [ -z "$TAG" ]; then - echo "Please specify a tag." - exit 1 + echo "Please specify a tag." + exit 1 fi TAG_NO_PATCH=${TAG%.*} -read -p "==> Push 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r +read -p "==> Push 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? [y/N] " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then