Merge pull request #1622 from A-Dawn/docker-uv-sync-fix

fix:Docker依赖安装问题
This commit is contained in:
Dawn ARC
2026-05-03 15:34:55 +08:00
committed by GitHub
2 changed files with 17 additions and 5 deletions

View File

@@ -7,4 +7,17 @@ mongodb
napcat
docs/
.github/
# test
# test
.env
.venv/
.pytest_cache/
.ruff_cache/
.tmp_*/
node_modules/
dashboard/node_modules/
data/
logs/
temp/
tmp/
mai_knowledge/
depends-data/

View File

@@ -7,14 +7,13 @@ WORKDIR /MaiMBot
ENV MAIBOT_LEGACY_0X_UPGRADE_CONFIRMED=1
# Copy dependency list
COPY requirements.txt .
# Copy dependency metadata
COPY pyproject.toml uv.lock ./
RUN apt-get update && apt-get install -y git
# Install runtime dependencies
RUN uv pip install --system --upgrade pip
RUN uv pip install --system -r requirements.txt
RUN uv sync --frozen --no-dev --system --no-install-project
# Copy project source
COPY . .