|
|
@ -5,13 +5,13 @@ ENV WORKDIR /Open-IM-Server
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
# 将可执行文件复制到目标目录
|
|
|
|
# 将可执行文件复制到目标目录
|
|
|
|
ADD ./open_im_sdk_server $WORKDIR/cmd/main
|
|
|
|
ADD ./open_im_sdk_server $WORKDIR/main
|
|
|
|
|
|
|
|
|
|
|
|
# 创建用于挂载的几个目录,添加可执行权限
|
|
|
|
# 创建用于挂载的几个目录,添加可执行权限
|
|
|
|
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
|
|
|
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
|
|
|
chmod +x $WORKDIR/cmd/main
|
|
|
|
chmod +x $WORKDIR/main
|
|
|
|
|
|
|
|
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"]
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"]
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
CMD ./cmd/main
|
|
|
|
CMD ./main
|
|
|
|