Files
Mofox-Core/Dockerfile
infinitycat 7213062f6d feat: Add g++ compiler installation in Dockerfile
This change ensures the g++ compiler is installed within the Docker image. It updates the build process to support projects requiring C++ compilation.
2025-04-23 14:50:25 +08:00

25 lines
525 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
# 编译器
RUN apt-get update && apt-get install -y g++
# 安装依赖
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" ]