environments minimal app quickstart - Azure/azureml-assets GitHub Wiki

minimal-app-quickstart

Overview

AzureML minimal app quickstart environment.

Version: 11

Tags

OS : Ubuntu22.04 Python : 3.11 Inferencing Preview

View in Studio: https://ml.azure.com/registries/azureml/environments/minimal-app-quickstart/version/11

Docker image: mcr.microsoft.com/azureml/curated/minimal-app-quickstart:11

Docker build context

Dockerfile

FROM mcr.microsoft.com/azureml/inference-base-2204:20241111.v1
USER root
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
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   

RUN chown -R dockeruser:dockeruser /azureml-envs/minimal
USER dockeruser

COPY . .

CMD ["/bin/sh", "entrypoint.sh"]

⚠️ **GitHub.com Fallback** ⚠️