File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ ARG CONDA_PKG_VERSION=4.13.0
10
10
ARG PYTHON_VERSION=3.8.13
11
11
ARG PYARROW_VERSION=10.0.1
12
12
ARG MLIO_VERSION=v0.8.0
13
- ARG NUMPY_VERSION=1.24.1
14
13
15
14
# Install python and other scikit-learn runtime dependencies
16
15
# Dependency list from http://scikit-learn.org/stable/developers/advanced_installation.html#installing-build-dependencies
@@ -82,7 +81,6 @@ RUN echo "conda ${CONDA_PKG_VERSION}" >> /miniconda3/conda-meta/pinned && \
82
81
conda install -c conda-forge python=${PYTHON_VERSION} && \
83
82
conda install conda=${CONDA_PKG_VERSION} && \
84
83
conda update -y conda && \
85
- conda install -c conda-forge numpy=${NUMPY_VERSION} && \
86
84
conda install -c conda-forge pyarrow=${PYARROW_VERSION} && \
87
85
cd /tmp && \
88
86
git clone --branch ${MLIO_VERSION} https://github.com/awslabs/ml-io.git mlio && \
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ ARG MINICONDA_VERSION=4.9.2 # Upgraded version
7
7
ARG CONDA_PY_VERSION=38
8
8
ARG CONDA_PKG_VERSION=4.10.1
9
9
ARG PYTHON_VERSION=3.8.13
10
- ARG PYARROW_VERSION=1 .0.0
11
- ARG MLIO_VERSION=arch-agnostic
10
+ ARG PYARROW_VERSION=10 .0.1
11
+ ARG MLIO_VERSION=0.8.0
12
12
13
13
# Install python and other scikit-learn runtime dependencies
14
14
# Dependency list from http://scikit-learn.org/stable/developers/advanced_installation.html#installing-build-dependencies
@@ -66,6 +66,10 @@ RUN apt-get update && \
66
66
rm /etc/apt/trusted.gpg.d/kitware.gpg && \
67
67
rm -rf /var/lib/apt/lists/*
68
68
69
+ # http://ftp.us.debian.org/debian/pool/main/libf/libffi/libffi7_3.3-6_arm64.deb
70
+ COPY docker/1.0-1/resources/libffi7_3.3-6_arm64.deb /tmp
71
+ RUN dpkg -i /tmp/libffi7_3.3-6_arm64.deb
72
+
69
73
RUN cd /tmp && \
70
74
curl -L --output /tmp/Miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-py${CONDA_PY_VERSION}_${MINICONDA_VERSION}-Linux-aarch64.sh && \
71
75
bash /tmp/Miniconda3.sh -bfp /miniconda3 && \
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ RUN python -m pip install -r /requirements.txt && \
8
8
rm /requirements.txt
9
9
10
10
COPY dist/sagemaker_sklearn_container-2.0-py3-none-any.whl /sagemaker_sklearn_container-2.0-py3-none-any.whl
11
- # https://github.com/googleapis/google-cloud-python/issues/6647
12
- RUN rm -rf /miniconda3/lib/python3.7 /site-packages/numpy-1.19.4.dist-info && \
13
- pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
11
+ RUN rm /miniconda3/lib/python3.8/site-packages/**/REQUESTED && \
12
+ rm /miniconda3/lib/python3.8 /site-packages/**/direct_url.json
13
+ RUN pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
14
14
rm /sagemaker_sklearn_container-2.0-py3-none-any.whl
15
15
16
16
ENV SAGEMAKER_TRAINING_MODULE sagemaker_sklearn_container.training:main
Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ MarkupSafe==2.1.1
22
22
Werkzeug == 0.15.6
23
23
setuptools == 65.5.1
24
24
wheel == 0.38.1
25
+ numpy == 1.24.1
You can’t perform that action at this time.
0 commit comments