autobounty/restart.sh

6 lines
181 B
Bash
Raw Normal View History

CONTAINER_ID="$(docker ps -lq)"
2018-02-27 11:17:03 +00:00
LOG_PATH=$(pwd)/log
docker stop ${CONTAINER_ID}
docker build -t autobounty .
docker run -d -v ${LOG_PATH}:/usr/src/app/log -p 8080:8080 autobounty &