environments minimal py39 inference - Azure/azureml-assets GitHub Wiki
AzureML minimal/Ubuntu 20.04/Python 3.9 cpu environment.
Version: 17
OS : Ubuntu20.04
Inferencing
Preview
View in Studio: https://ml.azure.com/registries/azureml/environments/minimal-py39-inference/version/17
Docker image: mcr.microsoft.com/azureml/curated/minimal-py39-inference:17
FROM mcr.microsoft.com/azureml/inference-base-2004: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" ]