Added MaiMBot-LPMM directory in Dockerfile and its repository clone step in the GitHub workflow. Upgraded compiler setup to use build-essential and included a CPU info check in the Dockerfile.
29 lines
611 B
Docker
29 lines
611 B
Docker
FROM python:3.13.2-slim-bookworm
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
# 工作目录
|
|
WORKDIR /MaiMBot
|
|
|
|
# 复制依赖列表
|
|
COPY requirements.txt .
|
|
# 同级目录下需要有 maim_message
|
|
COPY maim_message /maim_message
|
|
COPY MaiMBot-LPMM /MaiMBot-LPMM
|
|
|
|
# 编译器
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
|
|
# test
|
|
RUN cat /proc/cpuinfo | grep avx2
|
|
|
|
# 安装依赖
|
|
RUN uv pip install --system --upgrade pip
|
|
RUN uv pip install --system -e /maim_message
|
|
RUN uv pip install --system -r requirements.txt
|
|
|
|
# 复制项目代码
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT [ "python","bot.py" ] |