build(Dockerfile): 优化 Docker 镜像构建过程

- 移除了不必要的文件复制步骤,减少镜像大小
- 简化了 pyproject.toml 文件的复制逻辑,提高构建效率
This commit is contained in:
molanp 2025-08-26 17:37:41 +08:00
parent 5096e6000f
commit 9dbb73a71b

View File

@ -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 \