From 5ccf1523d725f72a5ef9316a33a79c77534fb7cb Mon Sep 17 00:00:00 2001 From: aszerW Date: Sun, 26 Oct 2025 16:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Eindex-base:latest=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E9=87=8D=E6=96=B0=E6=89=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 744472d..b53dfd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,11 @@ -FROM python:3.12-slim +FROM index-base:latest # 设置工作目录 WORKDIR /app -RUN apt-get update && \ - apt-get install -y --no-install-recommends tzdata && \ - ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - dpkg-reconfigure -f noninteractive tzdata && \ - rm -rf /var/lib/apt/lists/* - -RUN pip install uv \ - && rm -rf /root/.cache/pip - -ENV UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple - # 复制依赖文件 COPY requirements.txt . -# 配置清华源并安装 Python 依赖 -# RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ -# pip install --only-binary=all --no-cache-dir -r requirements.txt - RUN uv pip install --system -r requirements.txt # 仅复制除 data 目录外的应用代码