|
|
@ -1,7 +1,7 @@
|
|
|
|
FROM ubuntu
|
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
|
|
|
|
# 设置固定的项目路径
|
|
|
|
# 设置固定的项目路径
|
|
|
|
ENV WORKDIR /bin
|
|
|
|
ENV WORKDIR /Open-IM-Server
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
# 将可执行文件复制到目标目录
|
|
|
|
# 将可执行文件复制到目标目录
|
|
|
@ -11,5 +11,8 @@ ADD ./open_im_admin_cms $WORKDIR/main
|
|
|
|
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
|
|
|
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
|
|
|
chmod +x $WORKDIR/main
|
|
|
|
chmod +x $WORKDIR/main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
CMD ./main
|
|
|
|
CMD ./main
|
|
|
|