diff --git a/Dockerfile b/Dockerfile index 615a324b2..69a980d42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index cf6fad76a..8c3ccc38a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,7 +39,7 @@ services: - mongodb - napcat volumes: - - maimbotCONFIG:/app/config + - maimbotCONFIG:/MaiMBot/config image: jiajiu/maimbot:latest