mirror of https://github.com/Mai-with-u/MaiBot.git
build(docker): 重构 Dockerfile 并添加 docker-compose 配置
- 重构 Dockerfile,使用 python:3.13.2-slim-bookworm 作为基础镜像 - 添加 maim_message目录到镜像中,并使用清华大学镜像源安装依赖 - 新增 docker-compose.yml 文件,定义多服务的 Docker Compose 配置 - 配置包含 adapters、core、mongodb 和 napcat四个服务 - 设置端口映射、环境变量和数据卷pull/626/head
parent
fa5e9804f1
commit
1bff4d83de
|
|
@ -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 . .
|
||||
|
|
|
|||
Loading…
Reference in New Issue