mirror of https://github.com/Mai-with-u/MaiBot.git
修改配置文件路径
parent
5eaf7b034b
commit
29984adf89
|
|
@ -2,11 +2,8 @@ FROM nonebot/nb-cli:latest
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY . /MaiMBot/
|
COPY . /MaiMBot/
|
||||||
WORKDIR /MaiMBot
|
WORKDIR /MaiMBot
|
||||||
RUN mkdir config
|
RUN mv config/env.example config/.env \
|
||||||
RUN mv env.example config/.env \
|
&& mv config/bot_config_toml config/bot_config.toml
|
||||||
&& mv src/plugins/chat/bot_config_toml config/bot_config.toml
|
|
||||||
RUN ln -s /MaiMBot/config/.env /MaiMBot/.env \
|
|
||||||
&& ln -s /MaiMBot/config/bot_config.toml /MaiMBot/src/plugins/chat/bot_config.toml
|
|
||||||
RUN pip install --upgrade -r requirements.txt
|
RUN pip install --upgrade -r requirements.txt
|
||||||
VOLUME [ "/MaiMBot/config" ]
|
VOLUME [ "/MaiMBot/config" ]
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue