From 1bff4d83de8480a2056746db027fdf1016d019fa Mon Sep 17 00:00:00 2001 From: infinitycat Date: Tue, 1 Apr 2025 00:41:19 +0800 Subject: [PATCH] =?UTF-8?q?build(docker):=20=E9=87=8D=E6=9E=84=20Dockerfil?= =?UTF-8?q?e=20=E5=B9=B6=E6=B7=BB=E5=8A=A0=20docker-compose=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构 Dockerfile,使用 python:3.13.2-slim-bookworm 作为基础镜像 - 添加 maim_message目录到镜像中,并使用清华大学镜像源安装依赖 - 新增 docker-compose.yml 文件,定义多服务的 Docker Compose 配置 - 配置包含 adapters、core、mongodb 和 napcat四个服务 - 设置端口映射、环境变量和数据卷 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37e6e1ad4..483892006 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ COPY requirements.txt . COPY maim_message /maim_message # 安装依赖 -RUN pip install -e /maim_message -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -RUN pip install --upgrade -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple +RUN pip install -e /maim_message +RUN pip install --upgrade -r requirements.txt # 复制项目代码 COPY . .