fix docker
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -4,11 +4,11 @@ RUN apt update && apt install -y git
|
|||||||
RUN git clone https://github.com/jiajiu123/MaiMBot
|
RUN git clone https://github.com/jiajiu123/MaiMBot
|
||||||
WORKDIR /MaiMBot
|
WORKDIR /MaiMBot
|
||||||
RUN mkdir config
|
RUN mkdir config
|
||||||
RUN mv /app/env.example /app/config/.env \
|
RUN mv /MaiMBot/env.example /MaiMBot/config/.env \
|
||||||
&& mv /app/src/plugins/chat/bot_config_toml /app/config/bot_config.toml
|
&& mv /MaiMBot/src/plugins/chat/bot_config_toml /MaiMBot/config/bot_config.toml
|
||||||
RUN ln -s /app/config/.env /app/.env \
|
RUN ln -s /MaiMBot/config/.env /MaiMBot/.env \
|
||||||
&& ln -s /app/config/bot_config.toml /app/src/plugins/chat/bot_config.toml
|
&& ln -s /MaiMBot/config/bot_config.toml /MaiMBot/src/plugins/chat/bot_config.toml
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
VOLUME [ "/app/config" ]
|
VOLUME [ "/MaiMBot/config" ]
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT [ "nb","run" ]
|
ENTRYPOINT [ "nb","run" ]
|
||||||
@@ -39,7 +39,7 @@ services:
|
|||||||
- mongodb
|
- mongodb
|
||||||
- napcat
|
- napcat
|
||||||
volumes:
|
volumes:
|
||||||
- maimbotCONFIG:/app/config
|
- maimbotCONFIG:/MaiMBot/config
|
||||||
image: jiajiu/maimbot:latest
|
image: jiajiu/maimbot:latest
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user