node-red-contrib-teamspeak/docker-pack.sh

22 lines
234 B
Bash
Raw Normal View History

2021-04-27 21:01:31 +00:00
#!/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