Skip to content

Commit

Permalink
BUG: Fix missing requirements in docker CLI file
Browse files Browse the repository at this point in the history
For the additional filters, PyRadiomics requires scikit-image, which in
turn requires matplotlib. To install this package, freetype and libpng
are needed. Install these as well.
  • Loading branch information
JoostJM committed Aug 13, 2018
1 parent fe0e2c3 commit 09af9b5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker/cli/Dockerfile
Expand Up @@ -6,9 +6,11 @@ RUN yum update -y && \
yum install -y curl \
curl-devel \
coreutils \
freetype-devel \
gcc \
gcc-c++ \
gettext \
libpng-devel \
openssl-devel \
perl \
perl-CPAN \
Expand Down Expand Up @@ -84,11 +86,9 @@ RUN git clone https://github.com/martine/ninja.git && \
mv ninja /usr/bin/ && \
cd .. && rm -rf ninja

# Install pyradiomics
# Setup necessary python packages
WORKDIR /usr/src
RUN git clone https://github.com/radiomics/pyradiomics.git && \
cd pyradiomics && \
python --version && \
RUN python --version && \
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
pip install wheel>=0.29.0 && \
Expand All @@ -97,7 +97,12 @@ RUN git clone https://github.com/radiomics/pyradiomics.git && \
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())" && \
python -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

Expand Down

0 comments on commit 09af9b5

Please sign in to comment.