From c76c4d8257fcd23ccd3cfd9718989889920e9a6f Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Tue, 25 Jul 2023 14:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=A2=E6=88=B7=E7=AB=AFdo?= =?UTF-8?q?cker=E9=95=9C=E5=83=8Fbuild=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/unix/client_docker_build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/unix/client_docker_build.sh diff --git a/scripts/unix/client_docker_build.sh b/scripts/unix/client_docker_build.sh new file mode 100644 index 00000000..50199979 --- /dev/null +++ b/scripts/unix/client_docker_build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# 镜像版本,每次更新版本时需要调整 +ImageVer=1.8.5 +ImageName=neutrino-proxy-client +DockerFilePath=$PWD/../../neutrino-proxy-client/Dockerfile + +#echo '打包jar...' +sh ./client_build.sh + +# 删除老的本地镜像 +docker rmi -f $(docker images | grep $ImageName | awk '{print $3}') +# 构建镜像 +docker build -t $ImageName:$ImageVer -t $ImageName:latest -f $DockerFilePath $PWD/../.. +