-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade python from 3.13.7-slim to 3.14.1-slim #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # syntax=docker/dockerfile:1 | ||
| # Retriever Arm Dockerfile - Multi-stage build for Python service | ||
| FROM python:3.13.7-slim as builder | ||
| FROM python:3.14.1-slim as builder | ||
|
||
|
|
||
|
Comment on lines
+3
to
4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After bumping the builder base to Useful? React with 👍 / 👎. |
||
| # Install system dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
|
|
@@ -23,7 +23,7 @@ RUN poetry config virtualenvs.create false && \ | |
| poetry install --only main --no-interaction --no-ansi | ||
|
|
||
| # Runtime stage | ||
| FROM python:3.13.7-slim | ||
| FROM python:3.14.1-slim | ||
|
|
||
| # Install runtime dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This base image upgrade introduces a build failure. The
COPYinstruction on line 41 has a hardcoded path for Python 3.13:COPY --from=builder /usr/local/lib/python3.13/site-packages ....Since the builder stage now uses Python 3.14, this path no longer exists, and the build will fail. The destination path is also incorrect.
To fix this, you need to update the path on line 41 to use
python3.14.A more robust solution for the future would be to use an
ARGto define the Python version and use it in both theFROMandCOPYinstructions. For example: