ARG UBUNTU_VERSION=18.04
FROM ubuntu:${UBUNTU_VERSION}
ARG CONDA_VERSION=4.8.3 ARG CONDA_PY_VERSION=37 ARG PYTHON_VERSION=3.7 ARG PYARROW_VERSION=0.16.0 ARG MLIO_VERSION=0.6.0
RUN apt-get update &&
apt-get -y install --no-install-recommends
build-essential
curl
git
jq
libatlas-base-dev
nginx
openjdk-8-jdk-headless
unzip
wget
&&
# MLIO build dependencies
# Official Ubuntu APT repositories do not contain an up-to-date version of CMake required to build MLIO.
# Kitware contains the latest version of CMake.
apt-get -y install --no-install-recommends
apt-transport-https
ca-certificates
gnupg
software-properties-common
&&
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null |
gpg --dearmor - |
tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null &&
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' &&
apt-get update &&
apt-get install -y --no-install-recommends
autoconf
automake
build-essential
cmake
doxygen
libcurl4-openssl-dev
libssl-dev
libtool
ninja-build
python3-dev
python3-distutils
python3-pip
zlib1g-dev
&&
rm -rf /var/lib/apt/lists/*
RUN cd /tmp &&
curl -L --output /tmp/Miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-py${CONDA_PY_VERSION}_${CONDA_VERSION}-Linux-x86_64.sh &&
bash /tmp/Miniconda3.sh -bfp /miniconda3 &&
rm /tmp/Miniconda3.sh
ENV PATH=/miniconda3/bin:${PATH}
RUN conda install python=${PYTHON_VERSION} &&
conda update -y conda &&
conda install -c conda-forge pyarrow=${PYARROW_VERSION} &&
cd /tmp &&
git clone --branch v${MLIO_VERSION} https://github.com/awslabs/ml-io.git mlio &&
cd mlio &&
build-tools/build-dependency build/third-party all &&
mkdir -p build/release &&
cd build/release &&
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH="$(pwd)/../third-party" ../.. &&
cmake --build . &&
cmake --build . --target install &&
cmake -DMLIO_INCLUDE_PYTHON_EXTENSION=ON -DMLIO_INCLUDE_ARROW_INTEGRATION=ON ../.. &&
cmake --build . --target mlio-py &&
cmake --build . --target mlio-arrow &&
cd ../../src/mlio-py &&
python3 setup.py bdist_wheel &&
python3 -m pip install dist/.whl &&
cp -r /tmp/mlio/build/third-party/lib/intel64/gcc4.7/ /usr/local/lib/ &&
ldconfig &&
rm -rf /tmp/mlio
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=UTF-8 LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN python -m pip install --no-cache -I scikit-learn==0.23.2
| Package | Version |
|---|---|
| brotlipy | 0.7.0 |
| certifi | 2020.11.8 |
| cffi | 1.14.3 |
| chardet | 3.0.4 |
| conda | 4.9.2 |
| conda-package-handling | 1.7.2 |
| cryptography | 3.1.1 |
| idna | 2.10 |
| joblib | 0.17.0 |
| mlio | 0.6.0 |
| numpy | 1.19.4 |
| pandas | 1.1.4 |
| pip | 20.2.4 |
| pyarrow | 0.16.0 |
| pycosat | 0.6.3 |
| pycparser | 2.20 |
| pyOpenSSL | 19.1.0 |
| PySocks | 1.7.1 |
| python-dateutil | 2.8.1 |
| pytz | 2020.4 |
| requests | 2.24.0 |
| ruamel-yaml | 0.15.87 |
| scikit-learn | 0.23.2 |
| scipy | 1.5.4 |
| setuptools | 50.3.1.post20201107 |
| six | 1.15.0 |
| threadpoolctl | 2.1.0 |
| tqdm | 4.50.2 |
| urllib3 | 1.25.11 |
| wheel | 0.35.1 |
Content type
Image
Digest
Size
936.5 MB
Last updated
about 6 years ago
docker pull naruto/sagemaker-sklearn-base:0.23-cpu-py3