diff --git a/deploy_k8s/admin_cms/admin_cms.Dockerfile b/deploy_k8s/admin_cms/admin_cms.Dockerfile index e9edc9a6f..d373741d3 100644 --- a/deploy_k8s/admin_cms/admin_cms.Dockerfile +++ b/deploy_k8s/admin_cms/admin_cms.Dockerfile @@ -4,6 +4,9 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + + # 将可执行文件复制到目标目录 ADD ./open_im_admin_cms $WORKDIR/cmd/main diff --git a/deploy_k8s/api/api.Dockerfile b/deploy_k8s/api/api.Dockerfile index f1dd4c748..c6f287fee 100644 --- a/deploy_k8s/api/api.Dockerfile +++ b/deploy_k8s/api/api.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_api $WORKDIR/cmd/main diff --git a/deploy_k8s/auth/auth.Dockerfile b/deploy_k8s/auth/auth.Dockerfile index 04fbdf32a..6ddc5967c 100644 --- a/deploy_k8s/auth/auth.Dockerfile +++ b/deploy_k8s/auth/auth.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_auth $WORKDIR/cmd/main diff --git a/deploy_k8s/cache/cache.Dockerfile b/deploy_k8s/cache/cache.Dockerfile index 82f661df7..0ee6ed1bd 100644 --- a/deploy_k8s/cache/cache.Dockerfile +++ b/deploy_k8s/cache/cache.Dockerfile @@ -4,6 +4,9 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + + # 将可执行文件复制到目标目录 ADD ./open_im_cache $WORKDIR/cmd/main diff --git a/deploy_k8s/cms_api/cms_api.Dockerfile b/deploy_k8s/cms_api/cms_api.Dockerfile index 64c4ae25a..7921dfc4c 100644 --- a/deploy_k8s/cms_api/cms_api.Dockerfile +++ b/deploy_k8s/cms_api/cms_api.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_cms_api $WORKDIR/cmd/main diff --git a/deploy_k8s/conversation/conversation.Dockerfile b/deploy_k8s/conversation/conversation.Dockerfile index 4518627d3..9f92c8dea 100644 --- a/deploy_k8s/conversation/conversation.Dockerfile +++ b/deploy_k8s/conversation/conversation.Dockerfile @@ -4,6 +4,7 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd # 将可执行文件复制到目标目录 ADD ./open_im_conversation $WORKDIR/cmd/main diff --git a/deploy_k8s/demo/demo.Dockerfile b/deploy_k8s/demo/demo.Dockerfile index 05b532fd4..bccc97561 100644 --- a/deploy_k8s/demo/demo.Dockerfile +++ b/deploy_k8s/demo/demo.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_demo $WORKDIR/cmd/main diff --git a/deploy_k8s/friend/friend.Dockerfile b/deploy_k8s/friend/friend.Dockerfile index 1bdfe7c63..a545a5425 100644 --- a/deploy_k8s/friend/friend.Dockerfile +++ b/deploy_k8s/friend/friend.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_friend $WORKDIR/cmd/main diff --git a/deploy_k8s/group/group.Dockerfile b/deploy_k8s/group/group.Dockerfile index 7b902ee67..167214960 100644 --- a/deploy_k8s/group/group.Dockerfile +++ b/deploy_k8s/group/group.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_group $WORKDIR/cmd/main diff --git a/deploy_k8s/message_cms/message_cms.Dockerfile b/deploy_k8s/message_cms/message_cms.Dockerfile index f77ebc3c2..95edd64b9 100644 --- a/deploy_k8s/message_cms/message_cms.Dockerfile +++ b/deploy_k8s/message_cms/message_cms.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_message_cms $WORKDIR/cmd/main diff --git a/deploy_k8s/msg/msg.Dockerfile b/deploy_k8s/msg/msg.Dockerfile index 29ac3c0d4..668587bf1 100644 --- a/deploy_k8s/msg/msg.Dockerfile +++ b/deploy_k8s/msg/msg.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_msg $WORKDIR/cmd/main diff --git a/deploy_k8s/msg_gateway/msg_gateway.Dockerfile b/deploy_k8s/msg_gateway/msg_gateway.Dockerfile index 48441eb56..a88280fe3 100644 --- a/deploy_k8s/msg_gateway/msg_gateway.Dockerfile +++ b/deploy_k8s/msg_gateway/msg_gateway.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_msg_gateway $WORKDIR/cmd/main diff --git a/deploy_k8s/msg_transfer/msg_transfer.Dockerfile b/deploy_k8s/msg_transfer/msg_transfer.Dockerfile index 68c3f3819..be9bab452 100644 --- a/deploy_k8s/msg_transfer/msg_transfer.Dockerfile +++ b/deploy_k8s/msg_transfer/msg_transfer.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_msg_transfer $WORKDIR/cmd/main diff --git a/deploy_k8s/office/office.Dockerfile b/deploy_k8s/office/office.Dockerfile index c6db928fa..373611bc3 100644 --- a/deploy_k8s/office/office.Dockerfile +++ b/deploy_k8s/office/office.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_office $WORKDIR/cmd/main diff --git a/deploy_k8s/organization/organization.Dockerfile b/deploy_k8s/organization/organization.Dockerfile index b492e8300..eac9d114e 100644 --- a/deploy_k8s/organization/organization.Dockerfile +++ b/deploy_k8s/organization/organization.Dockerfile @@ -4,9 +4,12 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_organization $WORKDIR/cmd/main + # 创建用于挂载的几个目录,添加可执行权限 RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \ chmod +x $WORKDIR/cmd/main diff --git a/deploy_k8s/push/push.Dockerfile b/deploy_k8s/push/push.Dockerfile index 2ac18c56d..a690ccd27 100644 --- a/deploy_k8s/push/push.Dockerfile +++ b/deploy_k8s/push/push.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_push $WORKDIR/cmd/main diff --git a/deploy_k8s/sdk_server/sdk_server.Dockerfile b/deploy_k8s/sdk_server/sdk_server.Dockerfile index b56b852a4..985878620 100644 --- a/deploy_k8s/sdk_server/sdk_server.Dockerfile +++ b/deploy_k8s/sdk_server/sdk_server.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_sdk_server $WORKDIR/cmd/main diff --git a/deploy_k8s/statistics/statistics.Dockerfile b/deploy_k8s/statistics/statistics.Dockerfile index 44e8f2fe1..1e615b416 100644 --- a/deploy_k8s/statistics/statistics.Dockerfile +++ b/deploy_k8s/statistics/statistics.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_statistics $WORKDIR/cmd/main diff --git a/deploy_k8s/user/user.Dockerfile b/deploy_k8s/user/user.Dockerfile index 3218949d4..096ae62dd 100644 --- a/deploy_k8s/user/user.Dockerfile +++ b/deploy_k8s/user/user.Dockerfile @@ -4,6 +4,8 @@ FROM ubuntu ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml +RUN mkdir $WORKDIR/cmd + # 将可执行文件复制到目标目录 ADD ./open_im_user $WORKDIR/cmd/main