From b98bff5908a576de634830450f9696bcc706f6a8 Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 24 Feb 2025 16:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile.latest | 4 ++-- setup_production.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile.latest b/docker/Dockerfile.latest index cd037f8..b40e99c 100644 --- a/docker/Dockerfile.latest +++ b/docker/Dockerfile.latest @@ -25,8 +25,8 @@ RUN apt-get update \ && cd ${BUILD_PREFIX} \ && cp config-template.json config.json \ && /usr/local/bin/python -m pip install --no-cache --upgrade pip \ - && pip install --no-cache -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ - + && pip install --no-cache -r requirements.txt + WORKDIR ${BUILD_PREFIX} ADD docker/entrypoint.sh /entrypoint.sh diff --git a/setup_production.sh b/setup_production.sh index c76eee6..f7bb3ae 100644 --- a/setup_production.sh +++ b/setup_production.sh @@ -2,7 +2,7 @@ image_version=$version # 删除镜像 docker rmi -f $( - docker images | grep registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat | awk '{print $3}' + docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat | awk '{print $3}' ) # 构建telpo/mrp:$image_version镜像 docker build -f ./docker/Dockerfile.latest . -t ssjl/ai-ops-wechat:$image_version @@ -11,8 +11,8 @@ docker build -f ./docker/Dockerfile.latest . -t ssjl/ai-ops-wechat:$image_versio echo '=================开始推送镜像=======================' #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com -docker tag ssjl/ai-ops-wechat:$image_version registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$image_version -docker push registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$image_version +docker tag ssjl/ai-ops-wechat:$image_version registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat:$image_version +docker push registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat:$image_version echo '=================推送镜像完成=======================' #删除产生的None镜像 docker rmi -f $(docker images | grep none | awk '{print $3}')