Skip to content

Commit 854ae81

Browse files
try prod sm pins
1 parent 47e4a2b commit 854ae81

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

tensorflow/training/docker/2.19/py3/Dockerfile.cpu

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSIO
132132

133133
RUN ${PIP} --no-cache-dir install --upgrade \
134134
pip \
135-
"setuptools>=81.0.0"
135+
setuptools
136136

137137
# Some TF tools expect a "python" binary
138138
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python \
@@ -289,27 +289,22 @@ RUN $PYTHON -m pip install --no-cache-dir -U \
289289
shap
290290

291291
RUN $PYTHON -m pip install --no-cache-dir -U \
292-
sagemaker \
293-
sagemaker-experiments \
294-
sagemaker-tensorflow-training \
295-
sagemaker-training \
296-
y-py \
297-
sagemaker-studio-analytics-extension \
298-
"sparkmagic<1" \
299-
sagemaker-studio-sparkmagic-lib \
300-
smclarify
292+
sagemaker==2.254.1 \
293+
sagemaker-experiments==0.1.45 \
294+
sagemaker-tensorflow-training==20.4.1 \
295+
sagemaker-training==5.1.1 \
296+
y-py==0.6.2 \
297+
sagemaker-studio-analytics-extension==0.1.7 \
298+
sparkmagic==0.22.0 \
299+
sagemaker-studio-sparkmagic-lib==0.1.4 \
300+
smclarify==0.5
301301

302302
# Remove python kernel installed by sparkmagic
303303
RUN /usr/local/bin/jupyter-kernelspec remove -f python3
304304

305305
# Remove ipykernel
306306
RUN rm -rf /usr/local/share/jupyter/kernels/python3/kernel.json
307307

308-
# Clean up JupyterLab staging and test directories to remove CVEs
309-
RUN rm -rf /usr/local/lib/python*/site-packages/jupyterlab/staging \
310-
&& rm -rf /usr/local/lib/python*/site-packages/jupyterlab/tests \
311-
&& rm -rf /usr/local/share/jupyter/lab/staging
312-
313308
# remove tmp files
314309
RUN rm -rf /tmp/*
315310

tensorflow/training/docker/2.19/py3/cu125/Dockerfile.gpu

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSIO
193193

194194
RUN ${PIP} --no-cache-dir install --upgrade \
195195
pip \
196-
"setuptools>=81.0.0" \
196+
setuptools \
197197
wheel
198198

199199
# Some TF tools expect a "python" binary
@@ -392,11 +392,6 @@ RUN /usr/local/bin/jupyter-kernelspec remove -f python3
392392
# Remove ipykernel
393393
RUN rm -rf /usr/local/share/jupyter/kernels/python3/kernel.json
394394

395-
# Clean up JupyterLab staging and test directories to remove CVEs
396-
RUN rm -rf /usr/local/lib/python*/site-packages/jupyterlab/staging \
397-
&& rm -rf /usr/local/lib/python*/site-packages/jupyterlab/tests \
398-
&& rm -rf /usr/local/share/jupyter/lab/staging
399-
400395
# remove tmp files
401396
RUN rm -rf /tmp/*
402397

0 commit comments

Comments
 (0)