environments minimal py311 inference - Azure/azureml-assets GitHub Wiki
AzureML minimal/Ubuntu 22.04/Python 3.11 cpu environment.
Version: 15
OS : Ubuntu22.04
Inferencing
Preview
View in Studio: https://ml.azure.com/registries/azureml/environments/minimal-py311-inference/version/15
Docker image: mcr.microsoft.com/azureml/curated/minimal-py311-inference:15
FROM mcr.microsoft.com/azureml/inference-base-2204:20241111.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" ]