From 1893dd8336e5b3d3f87a497524acd6868a0afbf6 Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Fri, 7 Nov 2025 15:41:03 +0800 Subject: [PATCH] fix: dockefile --- .dockerignore | 4 +++- Dockerfile | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 8638bf3f6..965adc9e1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # github actions +.git .github/ .*ignore # User-specific stuff @@ -19,4 +20,5 @@ data/ changelogs/ tests/ .ruff_cache/ -.astrbot \ No newline at end of file +.astrbot +astrbot.lock \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e2d36efea..f143cdd64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,11 +18,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -RUN apt-get update && apt-get install -y curl gnupg && \ - curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ - apt-get install -y nodejs && \ +RUN apt-get update && apt-get install -y curl gnupg \ + && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ + && apt-get install -y nodejs -RUN python -m pip install uv +RUN python -m pip install uv \ + && echo "3.11" > .python-version RUN uv pip install -r requirements.txt --no-cache-dir --system RUN uv pip install socksio uv pilk --no-cache-dir --system