fix: Update Python site-packages path to version 3.14#64
Conversation
There was a problem hiding this comment.
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=builderpath frompython3.11/site-packagestopython3.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 |
There was a problem hiding this comment.
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).
No description provided.