fix docker

This commit is contained in:
jiajiu123
2025-02-28 18:26:26 +08:00
parent a43dc99210
commit 4dab69487e
2 changed files with 6 additions and 6 deletions

View File

@@ -4,11 +4,11 @@ RUN apt update && apt install -y git
RUN git clone https://github.com/jiajiu123/MaiMBot
WORKDIR /MaiMBot
RUN mkdir config
RUN mv /app/env.example /app/config/.env \
&& mv /app/src/plugins/chat/bot_config_toml /app/config/bot_config.toml
RUN ln -s /app/config/.env /app/.env \
&& ln -s /app/config/bot_config.toml /app/src/plugins/chat/bot_config.toml
RUN mv /MaiMBot/env.example /MaiMBot/config/.env \
&& mv /MaiMBot/src/plugins/chat/bot_config_toml /MaiMBot/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 -r requirements.txt
VOLUME [ "/app/config" ]
VOLUME [ "/MaiMBot/config" ]
EXPOSE 8080
ENTRYPOINT [ "nb","run" ]

View File

@@ -39,7 +39,7 @@ services:
- mongodb
- napcat
volumes:
- maimbotCONFIG:/app/config
- maimbotCONFIG:/MaiMBot/config
image: jiajiu/maimbot:latest