更新 ludu-module-datacenter/ludu-module-datacenter-biz/run.sh
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
root 2025-01-26 11:24:14 +08:00
parent a2999aaa9d
commit 7493fb956b

View File

@ -2,14 +2,15 @@ app_name='ludu-module-datacenter'
# 定义应用版本
app_version='1.0.0'
# 定义应用环境
# 打包编译docker镜像
echo '----build image----'
docker build -f Dockerfile -t ${app_name}:${app_version} .
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'
docker rm ${app_name}
echo '----rmi none image----'
docker rmi ${app_name}:${app_version}
# 打包编译docker镜像
echo '----build image----'
docker build -f Dockerfile -t ${app_name}:${app_version} .
echo '----start container----'
docker run -d -p 48092:48092 --name ${app_name} --restart always ${app_name}:${app_version}