From c94f011462d959fb0df34360079379b3695d9acb Mon Sep 17 00:00:00 2001 From: fawney19 Date: Mon, 15 Dec 2025 15:34:31 +0800 Subject: [PATCH] fix(docker): set SETUPTOOLS_SCM_PRETEND_VERSION for pip install in base image --- Dockerfile.base.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.base.local b/Dockerfile.base.local index 93ef797..3b46f6e 100644 --- a/Dockerfile.base.local +++ b/Dockerfile.base.local @@ -23,7 +23,7 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple # Python 依赖(安装到系统,不用 -e 模式) COPY pyproject.toml README.md ./ RUN mkdir -p src && touch src/__init__.py && \ - pip install --no-cache-dir . + SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0 pip install --no-cache-dir . # 前端依赖 COPY frontend/package*.json /tmp/frontend/