parent
424f854145
commit
6ea6a61e90
@ -0,0 +1,15 @@
|
||||
FROM ubuntu
|
||||
|
||||
# 设置固定的项目路径
|
||||
ENV WORKDIR /bin
|
||||
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
||||
|
||||
# 将可执行文件复制到目标目录
|
||||
ADD ../cmd/bin/open_im_api $WORKDIR/main
|
||||
|
||||
# 创建用于挂载的几个目录,添加可执行权限
|
||||
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
||||
chmod +x $WORKDIR/main
|
||||
|
||||
WORKDIR $WORKDIR
|
||||
CMD ./main
|
@ -0,0 +1,28 @@
|
||||
#/bin/sh
|
||||
#service_source_root=(
|
||||
# #api service file
|
||||
# ../cmd/open_im_api/
|
||||
# ../cmd/open_im_cms_api/
|
||||
# #rpc service file
|
||||
# ../cmd/rpc/open_im_user/
|
||||
# ../cmd/rpc/open_im_friend/
|
||||
# ../cmd/rpc/open_im_group/
|
||||
# ../cmd/rpc/open_im_auth/
|
||||
# ../cmd/rpc/open_im_admin_cms/
|
||||
# ../cmd/rpc/open_im_message_cms/
|
||||
# ../cmd/rpc/open_im_statistics/
|
||||
# ../cmd/rpc/open_im_office/
|
||||
# ../cmd/rpc/open_im_organization/
|
||||
# ../cmd/rpc/open_im_conversation/
|
||||
# ../cmd/rpc/open_im_cache/
|
||||
# ../cmd/open_im_msg_gateway/
|
||||
# ../cmd/open_im_msg_transfer/
|
||||
# ../cmd/rpc/open_im_msg/
|
||||
# ../cmd/open_im_push/
|
||||
# ../cmd/Open-IM-SDK-Core/
|
||||
# ../cmd/open_im_demo/
|
||||
#)
|
||||
#
|
||||
dockerfile_list=pwd
|
||||
|
||||
docker build -t $image . -f deploy.Dockerfile
|
Loading…
Reference in new issue