mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 19:22:46 +08:00
docker file
This commit is contained in:
parent
0714ff780a
commit
b372451a76
@ -17,7 +17,7 @@ RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure
|
|||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||||
RUN echo pwd
|
RUN echo pwd
|
||||||
RUN make build
|
COPY ./open_im_api ./
|
||||||
|
|
||||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||||
|
|
||||||
|
@ -15,8 +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
|
cd ${path}
|
||||||
cp -r ../* ${path}/Open-IM-Server
|
make build
|
||||||
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
|
||||||
@ -25,7 +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
|
cd ${currentPwd}
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "build all images success"
|
echo "build all images success"
|
Loading…
x
Reference in New Issue
Block a user