mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
build(Dockerfile): 优化 Docker 镜像构建过程
- 移除了不必要的文件复制步骤,减少镜像大小 - 简化了 pyproject.toml 文件的复制逻辑,提高构建效率
This commit is contained in:
parent
5096e6000f
commit
9dbb73a71b
@ -7,7 +7,7 @@ ENV POETRY_HOME="/opt/poetry" PATH="${PATH}:/opt/poetry/bin"
|
|||||||
RUN curl -sSL https://install.python-poetry.org | python - -y && \
|
RUN curl -sSL https://install.python-poetry.org | python - -y && \
|
||||||
poetry self add poetry-plugin-export
|
poetry self add poetry-plugin-export
|
||||||
|
|
||||||
COPY ./pyproject.toml ./poetry.lock* /tmp/
|
COPY ./pyproject.toml /tmp/
|
||||||
|
|
||||||
RUN poetry export \
|
RUN poetry export \
|
||||||
-f requirements.txt \
|
-f requirements.txt \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user