patch dockerfiles

这个提交包含在:
binary-husky
2025-08-23 19:19:35 +08:00
父节点 661fe63941
当前提交 248b0aefae
共有 4 个文件被更改,包括 11 次插入9 次删除

查看文件

@@ -29,7 +29,7 @@ RUN python -c 'import loguru'
# 装载项目文件,安装剩余依赖(必要) # 装载项目文件,安装剩余依赖(必要)
COPY . . COPY . .
RUN uv venv --python=3.12 && uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# # 非必要步骤,用于预热模块(可以删除) # # 非必要步骤,用于预热模块(可以删除)
RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()' RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()'

查看文件

@@ -26,7 +26,7 @@ RUN python -c 'import loguru'
# 装载项目文件,安装剩余依赖(必要) # 装载项目文件,安装剩余依赖(必要)
COPY . . COPY . .
RUN uv venv --python=3.12 && uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# # 非必要步骤,用于预热模块(可以删除) # # 非必要步骤,用于预热模块(可以删除)
RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()' RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()'

查看文件

@@ -24,14 +24,15 @@ WORKDIR /gpt
# 安装大部分依赖,利用Docker缓存加速以后的构建 (以下两行,可以删除) # 安装大部分依赖,利用Docker缓存加速以后的构建 (以下两行,可以删除)
COPY requirements.txt ./ COPY requirements.txt ./
RUN uv venv --python=3.12 && uv pip install --verbose -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv venv --python=3.12 && uv pip install --verbose -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
RUN uv venv --python=3.12 && uv pip install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy RUN uv pip install alibabacloud-nls-python-sdk -i https://mirrors.aliyun.com/pypi/simple/ RUN uv pip install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy -i https://mirrors.aliyun.com/pypi/simple/
RUN uv pip install alibabacloud-nls-python-sdk -i https://mirrors.aliyun.com/pypi/simple/
ENV PATH="/gpt/.venv/bin:$PATH" ENV PATH="/gpt/.venv/bin:$PATH"
RUN python -c 'import loguru' RUN python -c 'import loguru'
# 装载项目文件,安装剩余依赖(必要) # 装载项目文件,安装剩余依赖(必要)
COPY . . COPY . .
RUN uv venv --python=3.12 && uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# # 非必要步骤,用于预热模块(可以删除) # # 非必要步骤,用于预热模块(可以删除)
RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()' RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()'

查看文件

@@ -24,16 +24,17 @@ WORKDIR /gpt
# 安装大部分依赖,利用Docker缓存加速以后的构建 (以下两行,可以删除) # 安装大部分依赖,利用Docker缓存加速以后的构建 (以下两行,可以删除)
COPY requirements.txt ./ COPY requirements.txt ./
RUN uv venv --python=3.12 && uv pip install --verbose -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv venv --python=3.12 && uv pip install --verbose -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
RUN uv venv --python=3.12 && uv pip install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy git+https://github.com/aliyun/alibabacloud-nls-python-sdk.git RUN uv pip install aliyun-python-sdk-core==2.13.3 pyOpenSSL webrtcvad scipy -i https://mirrors.aliyun.com/pypi/simple/
RUN uv venv --python=3.12 && uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu RUN uv pip install alibabacloud-nls-python-sdk -i https://mirrors.aliyun.com/pypi/simple/
RUN uv venv --python=3.12 && uv pip install transformers protobuf langchain sentence-transformers faiss-cpu nltk beautifulsoup4 bitsandbytes tabulate icetk --upgrade RUN uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
RUN uv venv --python=3.12 && uv pip install unstructured[all-docs] --upgrade RUN uv pip install transformers protobuf langchain sentence-transformers faiss-cpu nltk beautifulsoup4 bitsandbytes tabulate icetk --upgrade
RUN uv pip install unstructured[all-docs] --upgrade
ENV PATH="/gpt/.venv/bin:$PATH" ENV PATH="/gpt/.venv/bin:$PATH"
RUN python -c 'import loguru' RUN python -c 'import loguru'
# 装载项目文件,安装剩余依赖(必要) # 装载项目文件,安装剩余依赖(必要)
COPY . . COPY . .
RUN uv venv --python=3.12 && uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN uv pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# # 非必要步骤,用于预热模块(可以删除) # # 非必要步骤,用于预热模块(可以删除)
RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()' RUN python -c 'from check_proxy import warm_up_modules; warm_up_modules()'