From 7493fb956b556d23eb7f3dc597f48982c94d2489 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Jan 2025 11:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ludu-module-datacenter/lud?= =?UTF-8?q?u-module-datacenter-biz/run.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ludu-module-datacenter/ludu-module-datacenter-biz/run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ludu-module-datacenter/ludu-module-datacenter-biz/run.sh b/ludu-module-datacenter/ludu-module-datacenter-biz/run.sh index b1ba66a78..05940660e 100644 --- a/ludu-module-datacenter/ludu-module-datacenter-biz/run.sh +++ b/ludu-module-datacenter/ludu-module-datacenter-biz/run.sh @@ -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} \ No newline at end of file