Skip to content

fix: Update Python site-packages path to version 3.14#64

Merged
venkatamutyala merged 1 commit intomainfrom
venkatamutyala-patch-2
Mar 3, 2026
Merged

fix: Update Python site-packages path to version 3.14#64
venkatamutyala merged 1 commit intomainfrom
venkatamutyala-patch-2

Conversation

@venkatamutyala
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 03:15
@venkatamutyala venkatamutyala enabled auto-merge (squash) March 3, 2026 03:15
@venkatamutyala venkatamutyala merged commit 4a4aaad into main Mar 3, 2026
4 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Docker image build to align the copied site-packages directory with the Python 3.14 base image, preventing dependency copy failures in the final stage.

Changes:

  • Update COPY --from=builder path from python3.11/site-packages to python3.14/site-packages.
  • No functional change to runtime entrypoint (line-number/format-only diff).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


# Copy the dependencies from the builder stage
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packages
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python minor version is hardcoded in the site-packages copy path (python3.14). Since the base image tag is also hardcoded (3.14.3) this creates duplication and makes it easy to reintroduce a mismatch (as happened previously with python3.11). Consider introducing a single build arg for the Python minor version and using it consistently for both the image tag and the COPY paths, or using a version-agnostic install/copy pattern (e.g., pip install to a dedicated prefix directory and copy that).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants