[Snyk] Security upgrade python from 3.6 to 3.14.3#118
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-FREETYPE-9402510 - https://snyk.io/vuln/SNYK-DEBIAN11-FREETYPE-9402510 - https://snyk.io/vuln/SNYK-DEBIAN11-FREETYPE-9402510 - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133 - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s Docker base image Python version as part of a Snyk-driven attempt to reduce known vulnerabilities in the container base image.
Changes:
- Update Docker base image from
python:3.6topython:3.14.3.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -1,4 +1,4 @@ | |||
| FROM python:3.6 | |||
| FROM python:3.14.3 | |||
There was a problem hiding this comment.
Upgrading the runtime to Python 3.14.3 is very likely to break the container build/runtime with the currently pinned dependencies (e.g., tensorflow==2.2.1, torch==1.5.0), which do not support such a new Python and typically won’t have wheels available, causing pip install -r requirements-web.txt to fail. Consider either (a) choosing a Python base image version that matches the project’s supported/tested version (CI uses Python 3.8) or (b) updating the requirements (and CI) to dependency versions that explicitly support Python 3.14 before changing the base image.
| FROM python:3.14.3 | |
| FROM python:3.8 |
Snyk has created this PR to fix 2 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):
dockerfileWe recommend upgrading to
python:3.14.3, as this image has only 219 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.Vulnerabilities that will be fixed with an upgrade:
SNYK-DEBIAN11-FREETYPE-9402510
SNYK-DEBIAN11-FREETYPE-9402510
SNYK-DEBIAN11-FREETYPE-9402510
SNYK-DEBIAN11-GLIBC-5927133
SNYK-DEBIAN11-GLIBC-5927133
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Out-of-bounds Write