environments component - Azure/azureml-assets GitHub Wiki

component

Overview

An environment for built-in component that can dynamically evaluate python expression for 1P request feature.

Version: 54

Tags

OS : Ubuntu22.04 Python : 3.9

View in Studio: https://ml.azure.com/registries/azureml/environments/component/version/54

Docker image: mcr.microsoft.com/azureml/curated/component:54

Docker build context

Dockerfile

FROM mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:20241111.v1

WORKDIR /

ENV CONDA_PREFIX=/azureml-envs/component-sdk
ENV CONDA_DEFAULT_ENV=$CONDA_PREFIX
ENV PATH=$CONDA_PREFIX/bin:$PATH
# This is needed for mpi to locate libpython
ENV LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH 

# Create conda environment
COPY conda_dependencies.yaml .
RUN conda env create -p $CONDA_PREFIX -f conda_dependencies.yaml -q && \
    rm conda_dependencies.yaml && \
    conda run -p $CONDA_PREFIX pip cache purge && \
    conda clean -a -y
⚠️ **GitHub.com Fallback** ⚠️