This commit is contained in:
wangchuxiao 2023-06-16 12:30:25 +08:00
parent 39fd6e5407
commit fb35d550b1
2 changed files with 4 additions and 2 deletions

View File

@ -4,8 +4,7 @@ FROM golang as build
ENV GO111MODULE=on ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct ENV GOPROXY=https://goproxy.cn,direct
RUN mkdir -p /Open-IM-Server COPY ./Open-IM-Server /
COPY ../. /Open-IM-Server
WORKDIR /Open-IM-Server/cmd/api WORKDIR /Open-IM-Server/cmd/api
RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\ RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\

View File

@ -15,6 +15,8 @@ currentPwd=${pwd}
i=0 i=0
for path in ${service_source_root[*]} for path in ${service_source_root[*]}
do do
mkdir ${path}/Open-IM-Server
cp -r ../* ${path}/Open-IM-Server
image="${repository}/${image_names[${i}]}:$version" image="${repository}/${image_names[${i}]}:$version"
echo ${image} echo ${image}
docker build -t $image . -f ${path}/deploy.Dockerfile docker build -t $image . -f ${path}/deploy.Dockerfile
@ -23,6 +25,7 @@ do
echo "push ${image} success" echo "push ${image} success"
echo "==============================" echo "=============================="
i=$((i + 1)) i=$((i + 1))
rm -rf ${path}/Open-IM-Server
done done
echo "build all images success" echo "build all images success"