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,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 . .