diff --git a/.dockerignore b/.dockerignore index 15c09fbf..654a03fd 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,4 +7,17 @@ mongodb napcat docs/ .github/ -# test \ No newline at end of file +# test +.env +.venv/ +.pytest_cache/ +.ruff_cache/ +.tmp_*/ +node_modules/ +dashboard/node_modules/ +data/ +logs/ +temp/ +tmp/ +mai_knowledge/ +depends-data/ diff --git a/Dockerfile b/Dockerfile index 91ad6b99..6904aafc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . .