|
|
@@ -1,22 +1,12 @@
|
|
|
-FROM python:3.11-slim
|
|
|
+FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/python:3.11-slim
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
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/*
|
|
|
-
|
|
|
COPY requirements.txt .
|
|
|
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|
|
|
|