environments model management - Azure/azureml-assets GitHub Wiki

model-management

Overview

Environment used by Model Management components

Version: 37

Tags

Preview

View in Studio: https://ml.azure.com/registries/azureml/environments/model-management/version/37

Docker image: mcr.microsoft.com/azureml/curated/model-management:37

Docker build context

Dockerfile

FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2004-cu121-py310-torch222:biweekly.202410.2

WORKDIR /

RUN apt-get update && apt-get upgrade -y && apt-get install wget nscd python3-idna git git-lfs -y

# azcopy install starts
RUN echo "Downloading azcopy to file azcopy.tar ....";\
    wget https://aka.ms/downloadazcopy-v10-linux -O azcopy.tar --no-verbose;\
    tar -xvf azcopy.tar;\
    mkdir -p ./azcopy/bin/;\
    cp ./azcopy_linux_amd64_*/azcopy ./bin/;\
    rm azcopy.tar;\
    rm -rf ./azcopy_linux_amd64_*;\
    which azcopy | grep -o azcopy > /dev/null &&  echo "azcopy not installed" || echo "azcopy installed";

COPY requirements.txt .

# Switch to python==3.9 to prevent numpy==1.23.5 build failure
# numpy==1.23.5 is a hard dependency in azureml-automl-dnn-vision
# which is not compatible with py310.
# Going forward  azureml-automl-dnn-vision needs to update version for torch and numpy
RUN conda install python=3.9 -y

RUN pip install -r requirements.txt --no-cache-dir

# Vulnerability fix
RUN pip install Pillow gunicorn onnx==1.17.0 idna tqdm requests==2.32.1 tornado==6.4.1 certifi==2024.07.04 urllib3==1.26.19 scikit-learn==1.5.1

# List installed packages
RUN pip list

## Delete
RUN rm requirements.txt
⚠️ **GitHub.com Fallback** ⚠️