Skip to content

Commit 44a0cdc

Browse files
Xinyun-123EC2 Default User
andauthored
feat: add SM Scikit-learn 1.2-1-1 image
* feat: upgrade python version to 3.10 * feat: upgrade python version * feat: upgrade python version * feat: only upgrade python version --------- Co-authored-by: EC2 Default User <ec2-user@ip-172-31-45-246.us-east-2.compute.internal>
1 parent 04c3893 commit 44a0cdc

File tree

13 files changed

+18
-11
lines changed

13 files changed

+18
-11
lines changed

docker/1.2-1/base/Dockerfile.cpu renamed to docker/1.2-1-1/base/Dockerfile.cpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2525
FROM ubuntu:${UBUNTU_VERSION}@sha256:${UBUNTU_IMAGE_DIGEST}
2626

2727
ARG MINICONDA_VERSION=24.7.1
28-
ARG CONDA_CHECKSUM=2006a61abc8b4fd04de5eb92620e1f72bada713cc84b5b4899463095e1210556
29-
ARG CONDA_PY_VERSION=39
28+
ARG CONDA_CHECKSUM=684cda724bc37e3bbbb342e440fc4cac515c92e91a489eb4359feca35382894b
29+
ARG CONDA_PY_VERSION=310
3030
ARG CONDA_PKG_VERSION=24.7.1
31-
ARG PYTHON_VERSION=3.9
31+
ARG PYTHON_VERSION=3.10
3232
ARG PYARROW_VERSION=14.0.1
3333
ARG MLIO_VERSION=v0.9.0
3434

File renamed without changes.
File renamed without changes.

docker/1.2-1/final/Dockerfile.cpu renamed to docker/1.2-1-1/final/Dockerfile.cpu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM sklearn-base:1.2-1
2-
ENV SAGEMAKER_SKLEARN_VERSION 1.2-1
1+
FROM sklearn-base:1.2-1-1
2+
ENV SAGEMAKER_SKLEARN_VERSION 1.2-1-1
33
ENV PIP_ROOT_USER_ACTION=ignore
44

55
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
@@ -9,8 +9,8 @@ RUN python -m pip install -r /requirements.txt && \
99
rm /requirements.txt
1010

1111
COPY dist/sagemaker_sklearn_container-2.0-py3-none-any.whl /sagemaker_sklearn_container-2.0-py3-none-any.whl
12-
RUN rm /miniconda3/lib/python3.9/site-packages/**/REQUESTED && \
13-
rm /miniconda3/lib/python3.9/site-packages/**/direct_url.json
12+
RUN rm /miniconda3/lib/python3.10/site-packages/**/REQUESTED && \
13+
rm /miniconda3/lib/python3.10/site-packages/**/direct_url.json
1414
RUN pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
1515
rm /sagemaker_sklearn_container-2.0-py3-none-any.whl
1616

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ itsdangerous==2.0.1
66
gunicorn==23.0.0
77
model-archiver==1.0.3
88
multi-model-server==1.1.1
9-
pandas==1.1.3
9+
pandas==1.5.3
1010
protobuf==3.20.2
1111
psutil==5.7.2
1212
python-dateutil==2.8.1
@@ -15,7 +15,7 @@ sagemaker-containers==2.8.6.post2
1515
sagemaker-inference==1.2.0
1616
sagemaker-training==4.8.0
1717
scikit-learn==1.2.1
18-
scipy==1.8.0
18+
scipy==1.9.3
1919
urllib3==1.26.17
2020
six==1.15.0
2121
jinja2==3.0.3
@@ -25,4 +25,5 @@ gevent==23.9.1
2525
Werkzeug==2.0.3
2626
setuptools
2727
wheel
28-
certifi
28+
certifi
29+
PyYAML==6.0.1

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def read(fname):
3434
"Programming Language :: Python :: 3.7",
3535
"Programming Language :: Python :: 3.8",
3636
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
3738
],
3839

3940
install_requires=read("requirements.txt"),

0 commit comments

Comments
 (0)