Merge pull request #22 from SengokuCola/main

1
This commit is contained in:
SengokuCola
2025-03-02 10:11:29 +08:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -2,11 +2,8 @@ FROM nonebot/nb-cli:latest
WORKDIR /
COPY . /MaiMBot/
WORKDIR /MaiMBot
RUN mkdir config
RUN mv env.example config/.env \
&& 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 mv config/env.example config/.env \
&& mv config/bot_config_toml config/bot_config.toml
RUN pip install --upgrade -r requirements.txt
VOLUME [ "/MaiMBot/config" ]
EXPOSE 8080

View File

@@ -13,6 +13,7 @@ services:
volumes:
- napcatQQ:/app/.config/QQ
- napcatCONFIG:/app/napcat/config
- maimbotDATA:/MaiMBot/data #麦麦的图片等要给napcat不然发送图片会有问题
image: mlikiowa/napcat-docker:latest
mongodb:
@@ -39,12 +40,15 @@ services:
- napcat
volumes:
- maimbotCONFIG:/MaiMBot/config
- maimbotDATA:/MaiMBot/data
image: sengokucola/maimbot:latest
volumes:
maimbotCONFIG:
maimbotDATA:
napcatQQ:
napcatCONFIG:
mongodb:
mongodbCONFIG: