Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions public_dropin_environments/python311/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {} +"

Expand Down
3 changes: 1 addition & 2 deletions public_dropin_environments/python311/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions public_dropin_environments/python311/env_info.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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"
]
}