完善docker构建发布脚本

This commit is contained in:
walker 2024-02-04 17:58:14 +08:00
parent 901e7530e6
commit 94bb094822
1 changed files with 2 additions and 1 deletions

View File

@ -32,4 +32,5 @@ 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
# 删除构建过程产生的none镜像
docker rmi -f `docker images | grep '<none>' | awk '{print $3}'`