Explorar o código

dockerfile 增加对nodejs对处理

luojunhui hai 3 meses
pai
achega
c41633dd53
Modificáronse 1 ficheiros con 2 adicións e 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