脚本调整.

This commit is contained in:
aoshiguchen
2023-04-05 17:36:52 +08:00
parent 87e6c066ed
commit 4258845985
17 changed files with 27 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# 镜像版本,每次更新版本时需要调整
ImageVer=1.0.0
ImageName=neutrino-proxy
DockerFilePath=$PWD/../..
#echo '打包jar...'
sh ./server_build.sh
#echo '打包管理后台...'
sh ./admin_build_docker.sh
# 删除老的本地镜像
docker rmi -f $(docker images | grep $ImageName | awk '{print $3}')
# 构建镜像
docker build -t $ImageName:$ImageVer -t $ImageName:latest $DockerFilePath