Skip to content

environments minimal py39 inference

github-actions[bot] edited this page Oct 4, 2024 · 25 revisions

minimal-py39-inference

Overview

AzureML minimal/Ubuntu 20.04/Python 3.9 cpu environment.

Version: 15

Tags

OS : Ubuntu20.04 Inferencing Preview

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

Docker image: mcr.microsoft.com/azureml/curated/minimal-py39-inference:15

Docker build context

Dockerfile

FROM mcr.microsoft.com/azureml/inference-base-2004:20241003.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