Browse Source

dockerfile 增加对nodejs对处理

luojunhui 3 months ago
parent
commit
c41633dd53
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -34,6 +34,8 @@ RUN apt-get update && \
 # 验证 node/npm(可选)
 RUN node -v && npm -v
 
+RUN npm install -g jsdom canvas
+
 # 安装 Python 依赖
 COPY requirements.txt .
 RUN pip install --no-cache-dir -r requirements.txt