#!/usr/bin/env sh set -e rm -rf dist yarn run build file=$(npm pack | tail -1) sudo docker-compose stop rm -rf docker mkdir docker sudo docker-compose up -d sleep 5 cd docker npm install "../$file" sudo docker-compose restart