diff --git a/Dockerfile b/Dockerfile index e642082..fb91297 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,11 @@ RUN mkdir -p /etc/pip \ RUN pip install --no-cache-dir uv -i https://mirrors.aliyun.com/pypi/simple/ \ && uv python install 3.8 3.13 +# 安装 Node.js 20.x(actions/checkout 需要) +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs && \ + node --version + # 预装项目 dev 依赖(仅复制依赖描述文件,利用 Docker 层缓存) WORKDIR /workspace COPY pyproject.toml tox.ini README.md ./