Make Docker runs interactive

Otherwise they're impossible to cancel via Ctrl+C and this is driving me mad.
This commit is contained in:
Ingvar Stepanyan
2020-11-20 22:42:27 +00:00
committed by Ingvar Stepanyan
parent 0ded493489
commit d15dba7d20
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh -e
docker build -t squoosh-cpp - < ../cpp.Dockerfile
docker run --rm -v $PWD:/src squoosh-cpp
docker run -it --rm -v $PWD:/src squoosh-cpp

View File

@ -7,4 +7,4 @@ then
fi
IMG_NAME=squoosh-rust$IMG_SUFFIX
docker build -t $IMG_NAME --build-arg RUST_IMG - < ../rust.Dockerfile
docker run --rm -v $PWD:/src $IMG_NAME "$@"
docker run -it --rm -v $PWD:/src $IMG_NAME "$@"