#!/bin/bash
# 重新构建docker镜像
sudo docker build -t local-face-app .

sudo mkdir -p /home/digimeta/local-face

sudo cp -r ./config.json /home/digimeta/local-face/
# 运行生成的docker镜像
#sudo docker run --add-host='oa.dfwytech.net:10.1.31.231' -v /home/digimeta/local-face/logs:/app/logs -v /home/digimeta/local-face/config.json:/app/config.json --restart=always -p 48484:18080 --name local-face-app -d local-face-app
sudo docker run -v /home/digimeta/local-face/logs:/app/logs -v /home/digimeta/local-face/config.json:/app/config.json --restart=always -p 48484:18080 --name local-face-app -d local-face-app
sudo tail -f -n 500 /home/digimeta/local-face/logs/web.log