node-red-contrib-teamspeak/docker-pack.sh
2021-04-27 23:01:31 +02:00

22 lines
234 B
Bash
Executable File

#!/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