|
|
|
@ -2,8 +2,10 @@ FROM ubuntu
|
|
|
|
|
|
|
|
|
|
# 设置固定的项目路径
|
|
|
|
|
ENV WORKDIR /Open-IM-Server
|
|
|
|
|
ENV CMDDIR $WORKDIR/cmd
|
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 将可执行文件复制到目标目录
|
|
|
|
|
ADD ./open_im_office $WORKDIR/cmd/main
|
|
|
|
|
|
|
|
|
@ -14,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
|
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
|
CMD ./cmd/main
|
|
|
|
|
WORKDIR $CMDDIR
|
|
|
|
|
CMD ./main
|