1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 02:38:18 +00:00

dockerbuild script: create build file if not exists

This commit is contained in:
Szymon Lesisz 2018-10-24 18:47:04 +02:00
parent 79f349608d
commit 3636142911

View File

@ -4,6 +4,7 @@ cd "$(dirname "$0")"
if [[ "$1" == "dev" || "$1" == 'beta' || "$1" == 'prod' ]]
then
mkdir -p ../build
rm -rf ../build/$1
docker ps -q --filter "name=trezor-wallet" | grep -q . && docker stop trezor-wallet && docker rm -fv trezor-wallet
docker build -t trezor-wallet ../ --build-arg BUILD_TYPE=$1