修复环境变量位置并挂载

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

@@ -41,9 +41,9 @@ services:
volumes:
- maimbotCONFIG:/MaiMBot/config
- maimbotDATA:/MaiMBot/data
- ./.env.prod:/MaiMBot/.env.prod
image: sengokucola/maimbot:latest
volumes:
maimbotCONFIG:
maimbotDATA:
@@ -52,3 +52,4 @@ volumes:
mongodb:
mongodbCONFIG: