diff --git a/public_dropin_environments/python311/Dockerfile b/public_dropin_environments/python311/Dockerfile index 5e0ab8862..953804f72 100644 --- a/public_dropin_environments/python311/Dockerfile +++ b/public_dropin_environments/python311/Dockerfile @@ -30,6 +30,7 @@ COPY --from=build /bin/mkdir /bin/mkdir # Required for custom-models to install dependencies COPY --from=build /usr/bin/pip /usr/bin/pip +COPY --from=build /usr/lib/python3.11/site-packages/pip /usr/lib/python3.11/site-packages/pip # Cleanup '__pycache__' directories. It solves an AsymmetricPrivateKey scanning error. COPY --from=build /usr/bin/rm /usr/bin/rm @@ -42,10 +43,8 @@ COPY requirements.txt requirements.txt ENV VIRTUAL_ENV=/opt/venv -RUN sh -c "python -m venv ${VIRTUAL_ENV} && \ +RUN sh -c "python -m venv --without-pip --system-site-packages ${VIRTUAL_ENV} && \ . ${VIRTUAL_ENV}/bin/activate && \ - python -m ensurepip --default-pip && \ - python -m pip install --upgrade pip && \ python -m pip install --no-cache-dir -r requirements.txt && \ find ${VIRTUAL_ENV} -type d -name '__pycache__' -exec rm -rf {} +" diff --git a/public_dropin_environments/python311/Dockerfile.local b/public_dropin_environments/python311/Dockerfile.local index 35a24bd82..f34905089 100644 --- a/public_dropin_environments/python311/Dockerfile.local +++ b/public_dropin_environments/python311/Dockerfile.local @@ -10,9 +10,8 @@ COPY requirements.txt requirements.txt ENV VIRTUAL_ENV=/opt/venv -RUN sh -c "python -m venv ${VIRTUAL_ENV} && \ +RUN sh -c "python -m venv --without-pip --system-site-packages ${VIRTUAL_ENV} && \ . ${VIRTUAL_ENV}/bin/activate && \ - python -m pip install --upgrade pip && \ python -m pip install --no-cache-dir -r requirements.txt" ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk diff --git a/public_dropin_environments/python311/env_info.json b/public_dropin_environments/python311/env_info.json index 9c8cb957d..62a8c75fd 100644 --- a/public_dropin_environments/python311/env_info.json +++ b/public_dropin_environments/python311/env_info.json @@ -1,10 +1,10 @@ { - "id": "67a554baeade3a4ce2ab6700", + "id": "67a554bbfbef3a4ce2ab6700", "name": "[DataRobot] Python 3.11 Drop-In", "description": "This template environment can be used to create Python based custom models. User is responsible to provide requirements.txt with the model, to install all the required dependencies.", "programmingLanguage": "python", "label": "", - "environmentVersionId": "68ddb0110008035274003e75", + "environmentVersionId": "67a554bbfbef4b4ce2ab6700", "environmentVersionDescription": "", "isPublic": true, "isDownloadable": true, @@ -14,8 +14,8 @@ "contextUrl": "https://github.com/datarobot/datarobot-user-models/tree/master/public_dropin_environments/python311", "imageRepository": "env-python", "tags": [ - "v11.2.0-68ddb0110008035274003e75", - "68ddb0110008035274003e75", + "v11.2.0-67a554bbfbef4b4ce2ab6700", + "67a554bbfbef4b4ce2ab6700", "v11.2.0-latest" ] }