Skip to content

environments component

github-actions[bot] edited this page Nov 7, 2024 · 2 revisions

component

Overview

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

Version: 53

Tags

OS : Ubuntu22.04 Python : 3.9

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

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

Docker build context

Dockerfile

FROM mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:20241020.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
Clone this wiki locally