fix docker dependency install

This commit is contained in:
DawnARC
2026-05-03 10:40:40 +08:00
parent 03ac8b30f3
commit 0a9833deab
2 changed files with 17 additions and 5 deletions

View File

@@ -7,4 +7,17 @@ mongodb
napcat napcat
docs/ docs/
.github/ .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 ENV MAIBOT_LEGACY_0X_UPGRADE_CONFIRMED=1
# Copy dependency list # Copy dependency metadata
COPY requirements.txt . COPY pyproject.toml uv.lock ./
RUN apt-get update && apt-get install -y git RUN apt-get update && apt-get install -y git
# Install runtime dependencies # Install runtime dependencies
RUN uv pip install --system --upgrade pip RUN uv sync --frozen --no-dev --system --no-install-project
RUN uv pip install --system -r requirements.txt
# Copy project source # Copy project source
COPY . . COPY . .