@ -3,7 +3,10 @@
set -eux
CONTAINER_NAME="phc/storage"
HOST_PORT="4000"
git pull
docker build -t "$CONTAINER_NAME" .
docker run --rm -d -p 4000:4000 "$CONTAINER_NAME"
docker stop "$CONTAINER_NAME"
docker run --rm -d --restart unless-stopped -p "$HOST_PORT:4000" "$CONTAINER_NAME"