mirror of https://github.com/Mai-with-u/MaiBot.git
fix docker
parent
a43dc99210
commit
4dab69487e
10
Dockerfile
10
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" ]
|
||||
|
|
@ -39,7 +39,7 @@ services:
|
|||
- mongodb
|
||||
- napcat
|
||||
volumes:
|
||||
- maimbotCONFIG:/app/config
|
||||
- maimbotCONFIG:/MaiMBot/config
|
||||
image: jiajiu/maimbot:latest
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue