#!/usr/bin/env bash user_id=$(id -u) image=btroops if [[ $2 == run && $3 == test* ]] then port=3005 else port=8080 fi docker run --rm --init -it -v $PWD:/usr/src/app -v $PWD/../pan-zoom:/usr/src/pan-zoom -u $user_id:$user_id -p $port:$port $image $@