Skip to content

Commit

Permalink
Merge pull request #652 from nipy/bf-dcm2niix-install
Browse files Browse the repository at this point in the history
[DATALAD RUNCMD] produce updated dockerfile
  • Loading branch information
yarikoptic authored Mar 14, 2023
2 parents 4bb1f15 + efef1d3 commit 6daaf8f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Generated by Neurodocker and Reproenv.

FROM neurodebian:bullseye
ENV PATH="/opt/dcm2niix-v1.0.20220720/bin:$PATH"
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
ca-certificates \
cmake \
g++ \
gcc \
git \
make \
pigz \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix \
&& cd /tmp/dcm2niix \
&& git fetch --tags \
&& git checkout v1.0.20220720 \
&& mkdir /tmp/dcm2niix/build \
&& cd /tmp/dcm2niix/build \
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 .. \
&& make -j1 \
&& make install \
&& rm -rf /tmp/dcm2niix
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
gcc \
Expand Down Expand Up @@ -67,6 +89,18 @@ RUN printf '{ \
"base_image": "neurodebian:bullseye" \
} \
}, \
{ \
"name": "env", \
"kwds": { \
"PATH": "/opt/dcm2niix-v1.0.20220720/bin:$PATH" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "apt-get update -qq\\napt-get install -y -q --no-install-recommends \\\\\\n ca-certificates \\\\\\n cmake \\\\\\n g++ \\\\\\n gcc \\\\\\n git \\\\\\n make \\\\\\n pigz \\\\\\n zlib1g-dev\\nrm -rf /var/lib/apt/lists/*\\ngit clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix\\ncd /tmp/dcm2niix\\ngit fetch --tags\\ngit checkout v1.0.20220720\\nmkdir /tmp/dcm2niix/build\\ncd /tmp/dcm2niix/build\\ncmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 ..\\nmake -j1\\nmake install\\nrm -rf /tmp/dcm2niix" \
} \
}, \
{ \
"name": "install", \
"kwds": { \
Expand Down

0 comments on commit 6daaf8f

Please sign in to comment.