docker file

This commit is contained in:
wangchuxiao 2023-06-16 13:16:20 +08:00
parent 0714ff780a
commit b372451a76
2 changed files with 4 additions and 4 deletions

View File

@ -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"]

View File

@ -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"