From 252f0f03f53e853c5b26d5adc48ce0eee16695ab Mon Sep 17 00:00:00 2001 From: NepPure Date: Fri, 28 Feb 2025 21:34:43 +0800 Subject: [PATCH] =?UTF-8?q?docker=E9=95=9C=E5=83=8F=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E4=BE=BF=E4=BA=8E=E5=A4=9A=E7=89=88=E6=9C=AC=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9de9cf2..9e1cf16b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ FROM nonebot/nb-cli:latest WORKDIR / -RUN apt update && apt install -y git -RUN git clone https://github.com/SengokuCola/MaiMBot +COPY . /MaiMBot/ WORKDIR /MaiMBot RUN mkdir config -RUN mv /MaiMBot/env.example /MaiMBot/config/.env \ -&& mv /MaiMBot/src/plugins/chat/bot_config_toml /MaiMBot/config/bot_config.toml +RUN mv env.example config/.env \ +&& mv src/plugins/chat/bot_config_toml 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