|
|
@ -2,6 +2,7 @@ FROM ubuntu
|
|
|
|
|
|
|
|
|
|
|
|
# 设置固定的项目路径
|
|
|
|
# 设置固定的项目路径
|
|
|
|
ENV WORKDIR /Open-IM-Server
|
|
|
|
ENV WORKDIR /Open-IM-Server
|
|
|
|
|
|
|
|
ENV CMDDIR $WORKDIR/cmd
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -15,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config", "/Open-IM-Server/script"]
|
|
|
|
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config", "/Open-IM-Server/script"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR $WORKDIR
|
|
|
|
WORKDIR $CMDDIR
|
|
|
|
CMD ./cmd/main
|
|
|
|
CMD ./main
|
|
|
|