mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
sh
This commit is contained in:
parent
39fd6e5407
commit
fb35d550b1
@ -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\
|
||||||
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user