diff --git a/deploy_k8s/dockerfiles/admin_cms.Dockerfile b/deploy_k8s/dockerfiles/admin_cms.Dockerfile index e69de29bb..bf86691d8 100644 --- a/deploy_k8s/dockerfiles/admin_cms.Dockerfile +++ b/deploy_k8s/dockerfiles/admin_cms.Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu + +# 设置固定的项目路径 +ENV WORKDIR /bin +ENV CONFIG_NAME $WORKDIR/config/config.yaml + +# 将可执行文件复制到目标目录 +ADD ./open_im_api $WORKDIR/main + +# 创建用于挂载的几个目录,添加可执行权限 +RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \ + chmod +x $WORKDIR/main + +WORKDIR $WORKDIR +CMD ./main diff --git a/deploy_k8s/script/build_push_all_images.sh b/deploy_k8s/script/build_push_all_images.sh index 2acd22e19..128622b77 100644 --- a/deploy_k8s/script/build_push_all_images.sh +++ b/deploy_k8s/script/build_push_all_images.sh @@ -23,7 +23,7 @@ # ../cmd/open_im_demo/ #) # -$version = v2.0.10 +version=v2.0.10 cd ../../script/; ./build_all_service.sh cd ../deploy_k8s/dockerfiles dockerfile_list=$(ls ../dockerfiles/)