-
-
Notifications
You must be signed in to change notification settings - Fork 283
Prevent uv to download Python and use the one in the image #6654
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?
Conversation
Extracted from work in PR #2273, but lost in a merge
|
/build
|
|
/build
|
❌MegaLinter analysis: Error❌ DOCKERFILE / hadolint - 1 error🤖 AI-Powered Fix Suggestions for DOCKERFILE_HADOLINT (by openai gpt-4.1-mini)
# Before (causes DL3006 warning)
FROM node
# After (fixed)
FROM node:18-alpineThis change ensures your builds are consistent and secure.
|
|
Not ready yet |

This ensures Python 3.13 from the container is really used, not 3.12 in .python-version
Extracted from work in PR #2273, but lost in a merge in commit 9092829
Since it is backporting some work from that PR, including the empty platform-specific stage selection override to still have the comment near the end valid.
Proposed Changes
Readiness Checklist
Author/Contributor
Reviewing Maintainer
breakingif this is a large fundamental changeautomation,bug,documentation,enhancement,infrastructure, orperformanceNote
Updates all Dockerfiles to enforce system Python 3.13 by disabling uv Python downloads, introduce platform-specific build stages, and standardize uv/caching and install steps.
build-ml-corestages (selected viaTARGETOS/TARGETARCH/TARGETVARIANT) for multi-arch builds.UV_PYTHON_DOWNLOADS=0andUV_LINK_MODE=copyin build and final stages.FROM python:3.13-alpine3.22 as final.uv syncto--locked --no-dev(replacing--frozen).sharing=lockedand runuvfrom theuvstage.Written by Cursor Bugbot for commit 75a810f. This will update automatically on new commits. Configure here.