Skip to content

environments minimal py311 inference

github-actions[bot] edited this page Dec 22, 2024 · 29 revisions

minimal-py311-inference

Overview

AzureML minimal/Ubuntu 22.04/Python 3.11 cpu environment.

Version: 17

Tags

OS : Ubuntu22.04 Inferencing Preview

View in Studio: https://ml.azure.com/registries/azureml/environments/minimal-py311-inference/version/17

Docker image: mcr.microsoft.com/azureml/curated/minimal-py311-inference:17

Docker build context

Dockerfile

FROM mcr.microsoft.com/azureml/inference-base-2204:20241216.v1

WORKDIR /
ENV AZUREML_CONDA_ENVIRONMENT_PATH=/azureml-envs/minimal
ENV AZUREML_CONDA_DEFAULT_ENVIRONMENT=$AZUREML_CONDA_ENVIRONMENT_PATH

# Prepend path to AzureML conda environment
ENV PATH $AZUREML_CONDA_ENVIRONMENT_PATH/bin:$PATH

ENV LD_LIBRARY_PATH $AZUREML_CONDA_ENVIRONMENT_PATH/lib:$LD_LIBRARY_PATH

# Create conda environment
USER root
RUN sed -i '66,148d' /var/runit/gunicorn/run
COPY conda_dependencies.yaml .
RUN conda env create -p $AZUREML_CONDA_ENVIRONMENT_PATH -f conda_dependencies.yaml -q && \
    rm conda_dependencies.yaml && \
    conda run -p $AZUREML_CONDA_ENVIRONMENT_PATH pip cache purge && \
    conda clean -a -y   
USER dockeruser

CMD [ "runsvdir", "/var/runit" ]
Clone this wiki locally