|
|
@@ -8,14 +8,14 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
|
|
ENV NVM_DIR=/root/.nvm
|
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
|
|
-# 安装 Node.js(推荐安装官方 LTS 版本)并安装 jsdom
|
|
|
-RUN apt-get update && apt-get install -y curl gnupg ca-certificates \
|
|
|
- && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
|
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
|
- && apt-get install -y nodejs \
|
|
|
- && npm install jsdom \
|
|
|
- && apt-get clean \
|
|
|
- && rm -rf /var/lib/apt/lists/*
|
|
|
+## 安装 Node.js(推荐安装官方 LTS 版本)并安装 jsdom
|
|
|
+#RUN apt-get update && apt-get install -y curl gnupg ca-certificates \
|
|
|
+# && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
|
+# && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
|
+# && apt-get install -y nodejs \
|
|
|
+# && npm install jsdom \
|
|
|
+# && apt-get clean \
|
|
|
+# && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|