修复环境变量位置并挂载

This commit is contained in:
NepPure
2025-03-02 19:17:05 +08:00
parent b98314da4f
commit a7e6bc14dc
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -27,7 +27,7 @@ services:
- mongodb:/data/db
- mongodbCONFIG:/data/configdb
image: mongo:latest
maimbot:
container_name: maimbot
environment:
@@ -41,8 +41,8 @@ services:
volumes:
- maimbotCONFIG:/MaiMBot/config
- maimbotDATA:/MaiMBot/data
- ./.env.prod:/MaiMBot/.env.prod
image: sengokucola/maimbot:latest
volumes:
maimbotCONFIG:
@@ -51,4 +51,5 @@ volumes:
napcatCONFIG:
mongodb:
mongodbCONFIG: