AWS Security ChangesHomeSearch

AWS sagemaker documentation change

Service: sagemaker · 2025-03-02 · Documentation low

File: sagemaker/latest/dg/studio-updated-jl-image-specifications.md

Summary

Updated Dockerfile specifications including base image change to Amazon Linux 2023, added explicit Python package installations, and version verification commands

Security assessment

The changes appear to be routine updates to Dockerfile specifications and package management, with no explicit security-related context or vulnerability fixes mentioned.

Diff

diff --git a/sagemaker/latest/dg/studio-updated-jl-image-specifications.md
index 0876dbbca..d5b3adec4 100644
--- a/sagemaker/latest/dg/studio-updated-jl-image-specifications.md
+++ b/sagemaker/latest/dg/studio-updated-jl-image-specifications.md
@@ -68 +68 @@ The following is a sample Amazon Linux 2 Dockerfile that meets the preceding spe
-    FROM public.ecr.aws/amazonlinux/amazonlinux:2
+    FROM public.ecr.aws/amazonlinux/amazonlinux:2023
@@ -73 +73,8 @@ The following is a sample Amazon Linux 2 Dockerfile that meets the preceding spe
-    RUN yum install --assumeyes python3 shadow-utils && \
+    
+    # Install Python3, pip, and other dependencies
+    RUN yum install -y \
+        python3 \
+        python3-pip \
+        python3-devel \
+        gcc \
+        shadow-utils && \
@@ -75,2 +82 @@ The following is a sample Amazon Linux 2 Dockerfile that meets the preceding spe
-        yum clean all && \
-        python3 -m pip install jupyterlab
+        yum clean all
@@ -78 +84,5 @@ The following is a sample Amazon Linux 2 Dockerfile that meets the preceding spe
-    RUN python3 -m pip install --upgrade pip
+    RUN python3 -m pip install --no-cache-dir \
+        'jupyterlab>=4.0.0,<5.0.0' \
+        urllib3 \
+        jupyter-activity-monitor-extension \
+        --ignore-installed
@@ -80 +90,3 @@ The following is a sample Amazon Linux 2 Dockerfile that meets the preceding spe
-    RUN python3 -m pip install --upgrade urllib3==1.26.6
+    # Verify versions
+    RUN python3 --version && \
+        jupyter lab --version