Explorar el Código

dockerfile 增加对nodejs对处理

luojunhui hace 3 meses
padre
commit
c41633dd53
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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