#!/bin/bash # args action=${1:build} # ensure newest git pull if [ $1 = "rebuild" ]; then echo 'Rebuild OSPRO KIT-API Container' docker stop ospro_kit_api-container docker rm ospro_kit_api-container else echo 'Build New OSPOR KIT-API Container' fi docker build -t ospro/kit_api -f ./docker/Dockerfile . docker run -d -p 127.0.0.1:8333:80 --name ospro_kit_api-container ospro/kit_api