This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git


The following commit(s) were added to refs/heads/main by this push:
     new 594b978  fix(chore): Dockerfile to add pyproject.toml anchor file 
(#266)
594b978 is described below

commit 594b97817d3f28f65fa2288033eae79c97af5e91
Author: Linyu <94553312+weijing...@users.noreply.github.com>
AuthorDate: Thu Jun 5 17:36:30 2025 +0800

    fix(chore): Dockerfile to add pyproject.toml anchor file (#266)
    
    This PR fixes both Dockerfile.llm and Dockerfile.nk by adding the
    missing step to copy pyproject.toml into the runtime image.
    
    Details:
    
    - Added COPY command to include /build/hugegraph-llm/pyproject.toml (or
    /home/work/hugegraph-llm/pyproject.toml) in the final image.
    - Ensures that pyproject.toml is available in the runtime environment
    for get_project_path() api in anchor.py
    - Improves image completeness.
    
    ---------
    
    Co-authored-by: imbajin <j...@apache.org>
---
 docker/Dockerfile.llm | 1 +
 docker/Dockerfile.nk  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/docker/Dockerfile.llm b/docker/Dockerfile.llm
index 8508090..2cc0449 100644
--- a/docker/Dockerfile.llm
+++ b/docker/Dockerfile.llm
@@ -32,6 +32,7 @@ WORKDIR /home/work/
 # Copy virtual environment and source code
 COPY --from=builder --chown=work:work /home/work/hugegraph-llm/.venv 
/home/work/hugegraph-llm/.venv
 COPY --from=builder --chown=work:work /home/work/hugegraph-llm/src 
/home/work/hugegraph-llm/src
+COPY --from=builder --chown=work:work /home/work/hugegraph-llm/pyproject.toml 
/home/work/hugegraph-llm/pyproject.toml
 
 USER work
 ENV PATH="/home/work/hugegraph-llm/.venv/bin:$PATH"
diff --git a/docker/Dockerfile.nk b/docker/Dockerfile.nk
index ba6c084..a754109 100644
--- a/docker/Dockerfile.nk
+++ b/docker/Dockerfile.nk
@@ -34,6 +34,7 @@ WORKDIR /home/work/
 COPY --from=builder --chown=work:work /build/hugegraph-llm/src 
/home/work/hugegraph-llm/src
 COPY --from=builder --chown=work:work /build/hugegraph-llm/app.dist 
/home/work/hugegraph-llm/app.dist
 COPY --from=builder --chown=work:work /build/hugegraph-llm/app.build 
/home/work/hugegraph-llm/app.build
+COPY --from=builder --chown=work:work /build/hugegraph-llm/pyproject.toml 
/home/work/hugegraph-llm/pyproject.toml
 
 USER work
 

Reply via email to