From 9dbb73a71b5b83f1f5b9490ea430709bf6a14122 Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Tue, 26 Aug 2025 17:37:41 +0800 Subject: [PATCH] =?UTF-8?q?build(Dockerfile):=20=E4=BC=98=E5=8C=96=20Docke?= =?UTF-8?q?r=20=E9=95=9C=E5=83=8F=E6=9E=84=E5=BB=BA=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了不必要的文件复制步骤,减少镜像大小 - 简化了 pyproject.toml 文件的复制逻辑,提高构建效率 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index acdbd5fd..e72eca3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ENV POETRY_HOME="/opt/poetry" PATH="${PATH}:/opt/poetry/bin" RUN curl -sSL https://install.python-poetry.org | python - -y && \ poetry self add poetry-plugin-export -COPY ./pyproject.toml ./poetry.lock* /tmp/ +COPY ./pyproject.toml /tmp/ RUN poetry export \ -f requirements.txt \