Skip to content

Commit

Permalink
FIX: Patch + shrink final docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Feb 3, 2023
1 parent 3585da9 commit 459ad3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN git clone --depth 1 https://github.com/DevelopmentalImagingMCRI/MCRIBS.git &
cd MCRIBS && git checkout bb57350a88c35487ae1ad2d33975ec83eaa15a45 && \
mv MIRTK/MIRTK /tmp/MIRTK && \
patch /tmp/MIRTK/Modules/Common/src/Parallel.cc /tmp/patches/Parallel.patch && \
patch MIRTK/CMake/Modules/FindTBB.cmake /tmp/patches/FindTBB.patch && \
patch /tmp/MIRTK/CMake/Modules/FindTBB.cmake /tmp/patches/FindTBB.patch && \
mkdir /tmp/mirtk-build && cd /tmp/mirtk-build && \
ITK_DIR=/opt/itk && VTK_DIR=/opt/vtk && \
cmake \
Expand Down Expand Up @@ -96,7 +96,7 @@ RUN git clone --depth 1 https://github.com/DevelopmentalImagingMCRI/MCRIBS.git &
/tmp/MIRTK && \
make -j $(nproc) install && \
ldconfig && \
cd /tmp && rm -rf /tmp/MIRTK /tmp/mirtk-build
cd /tmp && rm -rf /tmp/*

# Avoid hardcoding python path
RUN sed -i '1 c#! /usr/bin/env python' /opt/mirtk/bin/mirtk
Expand Down

0 comments on commit 459ad3d

Please sign in to comment.