Skip to content

Commit

Permalink
Merge pull request #514 from JoostJM/docker
Browse files Browse the repository at this point in the history
BUG: Update docker CLI to use python 3.6.9
  • Loading branch information
JoostJM committed Aug 13, 2019
2 parents eae15ef + bb69378 commit 52c671f
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions docker/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,28 @@ RUN git clone https://github.com/martine/ninja.git && \
mv ninja /usr/bin/ && \
cd .. && rm -rf ninja

# Setup necessary python packages
# Setup Python package manager (pip)
WORKDIR /usr/src
RUN python --version && \
RUN python3 --version && \
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
pip install wheel>=0.29.0 && \
pip install setuptools>=28.0.0 && \
pip install scipy && \
pip install trimesh && \
pip install scikit-image && \
pip install --trusted-host www.itk.org -f https://itk.org/SimpleITKDoxygen/html/PyDownloadPage.html SimpleITK>=0.9.1 && \
python -c "import SimpleITK; print('SimpleITK Version:' + SimpleITK.Version_VersionString())"
python3 get-pip.py

# Setup necessary python packages
WORKDIR /usr/src
RUN pip3 install wheel>=0.29.0 && \
pip3 install setuptools>=28.0.0 && \
pip3 install scipy && \
pip3 install trimesh && \
pip3 install scikit-image && \
pip3 install --trusted-host www.itk.org -f https://itk.org/SimpleITKDoxygen/html/PyDownloadPage.html SimpleITK>=0.9.1 && \
python3 -c "import SimpleITK; print('SimpleITK Version:' + SimpleITK.Version_VersionString())"

# Install PyRadiomics
WORKDIR /usr/src
RUN git clone https://github.com/radiomics/pyradiomics.git && \
cd pyradiomics && \
pip install -r requirements.txt && \
python setup.py install
pip3 install -r requirements.txt && \
python3 setup.py install

WORKDIR /usr/src
ENTRYPOINT ["pyradiomics"]

0 comments on commit 52c671f

Please sign in to comment.