From aba18232b1f7b6559361e27c5410580df9857577 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 16 Apr 2025 21:52:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20docker=20=E9=95=9C=E5=83=8F=E8=87=AA?= =?UTF-8?q?=E5=B8=A6=20node=20=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #1290 --- .dockerignore | 5 ++++- Dockerfile | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index bd766633..7cb6b09a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -17,4 +17,7 @@ ENV/ .conda/ README*.md dashboard/ -data/ \ No newline at end of file +data/ +changelogs/ +tests/ +.ruff_cache/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 2bc60833..59ef17d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /AstrBot COPY . /AstrBot/ RUN apt-get update && apt-get install -y --no-install-recommends \ + nodejs \ + npm \ gcc \ build-essential \ python3-dev \ @@ -28,3 +30,6 @@ EXPOSE 6185 EXPOSE 6186 CMD [ "python", "main.py" ] + + +