添加 Docker 支持
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM nonebot/nb-cli:latest
|
||||
WORKDIR /
|
||||
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 pip install -r requirements.txt
|
||||
VOLUME [ "/app/config" ]
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT [ "nb","run" ]
|
||||
Reference in New Issue
Block a user