修复环境变量位置并挂载

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 / WORKDIR /
COPY . /MaiMBot/ COPY . /MaiMBot/
WORKDIR /MaiMBot WORKDIR /MaiMBot
RUN mv config/env.example config/.env \ RUN mv config/bot_config_toml config/bot_config.toml
&& mv config/bot_config_toml config/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

View File

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