mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +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 \
|
||||
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
|
||||
RUN echo pwd
|
||||
RUN make build
|
||||
COPY ./open_im_api ./
|
||||
|
||||
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]
|
||||
|
||||
|
@ -15,8 +15,8 @@ currentPwd=${pwd}
|
||||
i=0
|
||||
for path in ${service_source_root[*]}
|
||||
do
|
||||
mkdir ${path}/Open-IM-Server
|
||||
cp -r ../* ${path}/Open-IM-Server
|
||||
cd ${path}
|
||||
make build
|
||||
image="${repository}/${image_names[${i}]}:$version"
|
||||
echo ${image}
|
||||
docker build -t $image . -f ${path}/deploy.Dockerfile
|
||||
@ -25,7 +25,7 @@ do
|
||||
echo "push ${image} success"
|
||||
echo "=============================="
|
||||
i=$((i + 1))
|
||||
rm -rf ${path}/Open-IM-Server
|
||||
cd ${currentPwd}
|
||||
done
|
||||
|
||||
echo "build all images success"
|
Loading…
x
Reference in New Issue
Block a user