test-errcode
wangchuxiao 1 year ago
parent 2acff68f4c
commit 685511981a

@ -5,7 +5,7 @@ ENV GO111MODULE=on
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
RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\
@ -17,7 +17,7 @@ RUN apt-get install -y vim curl tzdata gawk
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends ca-certificates curl
RUN echo pwd
RUN make build
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]

@ -15,6 +15,8 @@ currentPwd=${pwd}
i=0
for path in ${service_source_root[*]}
do
cd ${path}
make build
image="${repository}/${image_names[${i}]}:$version"
echo ${image}
docker build -t $image . -f ${path}/deploy.Dockerfile
@ -23,6 +25,8 @@ do
echo "push ${image} success"
echo "=============================="
i=$((i + 1))
rm -rf ${service_names[${i}]}
cd ${currentPwd}
done
echo "build all images success"
Loading…
Cancel
Save