完善docker构建发布脚本

This commit is contained in:
walker 2024-02-04 17:50:58 +08:00
parent 5d99a08d3d
commit 901e7530e6
1 changed files with 3 additions and 0 deletions

View File

@ -26,7 +26,10 @@ create_docker_mynet() {
# 执行docker网络mynet创建
create_docker_mynet
docker rm -f bj-rtsts-server
docker rmi -f bj-rtsts-server
docker build --rm=true -f ./Dockerfile -t bj-rtsts-server:1.0 ./
docker run --name bj-rtsts-server --restart=always --network mynet --ip 192.168.53.191 -d -p 9091:9091 -v /usr/local/joylink/logs/bjrtsts:/logs/bjrtsts bj-rtsts-server:1.0 bj-rtsts-server -config $CONFIG
docker image prune -a