build: 将 pcse 本地路径依赖改为本地 vendor wheel 包
- 在 Dockerfile 中复制 vendor/ 目录,确保镜像构建时可用本地 wheel - pyproject.toml 中将 pcse 依赖从 file:///job/pcse 固定为 ==6.0.12 - 配置 uv find-links 指向 ./vendor,解析本地 wheel 源 - 新增 vendor/pcse-6.0.12-py3-none-any.whl,避免依赖外部绝对路径
This commit is contained in:
@@ -11,8 +11,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 复制项目配置文件
|
||||
# 复制项目配置文件与本地 wheel 依赖
|
||||
COPY pyproject.toml justfile ./
|
||||
COPY vendor/ ./vendor/
|
||||
|
||||
# 配置 uv 使用阿里云镜像源
|
||||
ENV UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ \
|
||||
|
||||
Reference in New Issue
Block a user