-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade python from 3.13.7-slim to 3.14.2-slim #14
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 | ||
| # Orchestrator Service Dockerfile - Multi-stage build for production | ||
| FROM python:3.13.7-slim as builder | ||
| FROM python:3.14.2-slim as builder | ||
|
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.
The base image was bumped to Useful? React with 👍 / 👎. |
||
|
|
||
| # Install system dependencies for building | ||
| RUN apt-get update && apt-get install -y \ | ||
|
|
@@ -24,7 +24,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.2-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.
Upgrading the Python base image is a good security measure. However, this change will break the Docker build because the
COPYinstruction on line 43 has a hardcoded path topython3.13.With the base image updated to
python:3.14.2-slim, the path for site-packages will now be/usr/local/lib/python3.14/site-packages. You need to update line 43 accordingly:COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packagesTo prevent this issue in the future, consider using build arguments for the Python version. This would allow you to update the version in a single place for both
FROMandCOPYinstructions.