environments aoai data upload finetune - Azure/azureml-assets GitHub Wiki
Environment used by proxy AOAI components
Version: 56
Preview
View in Studio: https://ml.azure.com/registries/azureml/environments/aoai-data-upload-finetune/version/56
Docker image: mcr.microsoft.com/azureml/curated/aoai-data-upload-finetune:56
FROM mcr.microsoft.com/azureml/openmpi5.0-ubuntu24.04:20261026.v1
# Upgrade OS packages to pull current Ubuntu security patches.
# libgcrypt20 is inherited from the openmpi base image; pin to the
# USN-8711-1 patched version for CVE-2024-2236.
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --only-upgrade \
libgcrypt20=1.10.3-2ubuntu0.2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# pinned transitive dep of azure-identity via msal; azureml-mlflow caps cryptography below the patched version, fixes GHSA-g6cj-pr64-35w5.
RUN pip install -r requirements.txt --no-cache-dir \
&& pip install "cryptography>=50.0.0" --no-cache-dir
# Refresh packages for the latest Ubuntu security advisories.
RUN set -eux; \
apt-get update; \
security_packages="curl libcurl3-gnutls libcurl3t64-gnutls libcurl4 libcurl4t64 libexpat1 libssl3t64 openssh-client openssh-server openssh-sftp-server openssl"; \
installed_packages=""; \
for package in $security_packages; do \
if dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q "install ok installed"; then \
installed_packages="$installed_packages $package"; \
fi; \
done; \
if [ -n "$installed_packages" ]; then apt-get install -y --only-upgrade $installed_packages; fi; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
# Reassert newly patched transitive dependencies after all package installs.
RUN /opt/miniconda/bin/python -m pip install --no-cache-dir --upgrade 'PyJWT>=2.15.0' 'oauthlib>=4.0.0'