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
1010ARG PYTHON_VERSION=3.8.13
1111ARG PYARROW_VERSION=10.0.1
1212ARG MLIO_VERSION=v0.8.0
13- ARG NUMPY_VERSION=1.24.1
1413
1514# Install python and other scikit-learn runtime dependencies
1615# 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 && \
8281 conda install -c conda-forge python=${PYTHON_VERSION} && \
8382 conda install conda=${CONDA_PKG_VERSION} && \
8483 conda update -y conda && \
85- conda install -c conda-forge numpy=${NUMPY_VERSION} && \
8684 conda install -c conda-forge pyarrow=${PYARROW_VERSION} && \
8785 cd /tmp && \
8886 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
77ARG CONDA_PY_VERSION=38
88ARG CONDA_PKG_VERSION=4.10.1
99ARG 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
1212
1313# Install python and other scikit-learn runtime dependencies
1414# Dependency list from http://scikit-learn.org/stable/developers/advanced_installation.html#installing-build-dependencies
@@ -66,6 +66,10 @@ RUN apt-get update && \
6666 rm /etc/apt/trusted.gpg.d/kitware.gpg && \
6767 rm -rf /var/lib/apt/lists/*
6868
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+
6973RUN cd /tmp && \
7074 curl -L --output /tmp/Miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-py${CONDA_PY_VERSION}_${MINICONDA_VERSION}-Linux-aarch64.sh && \
7175 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 && \
88 rm /requirements.txt
99
1010COPY 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 && \
1414 rm /sagemaker_sklearn_container-2.0-py3-none-any.whl
1515
1616ENV 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
2222Werkzeug == 0.15.6
2323setuptools == 65.5.1
2424wheel == 0.38.1
25+ numpy == 1.24.1
You can’t perform that action at this time.
0 commit comments