Skip to content

Commit

Permalink
Deletes scipy and unneded tests folders in Python.
Browse files Browse the repository at this point in the history
To reduce the size of the image.
  • Loading branch information
pvelasco committed Nov 6, 2019
1 parent e40c041 commit 9762ab0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ RUN pip install pydeface==${PYDEFACE_VERSION} && \

### Clean up a little ###

# Get rid of some Python packages not needed by our App:
# (Don't pip unistall them because pydeface searches for them, so
# we want to leave the "dist-info" in place).
# Delete also the "tests" folders in all python packages.
RUN rm -r ${PYTHON_LIB_PATH}/site-packages/scipy && \
find ${PYTHON_LIB_PATH}/site-packages/ -type d -name "tests" -print0 | xargs -0 rm -r


#############
Expand All @@ -58,8 +64,7 @@ COPY --from=cbinyu/fsl6-core ./${FSLDIR}/lib/libopenblas.so.0 \
./${FSLDIR}/lib/libgfortran.so.3 \
${FSLDIR}/lib/
# Copy an extra library needed by FSL:
COPY --from=cbinyu/fsl6-core ./usr/lib/x86_64-linux-gnu/libquadmath.so.0 \
./usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0 \
COPY --from=cbinyu/fsl6-core ./usr/lib/x86_64-linux-gnu/libquadmath.so.0* \
/usr/lib/x86_64-linux-gnu/

COPY run.py version /
Expand Down

0 comments on commit 9762ab0

Please sign in to comment.