-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 944 Bytes
/
Dockerfile
File metadata and controls
39 lines (34 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.11-slim
LABEL maintainer="OpenNeuroPET team"
LABEL description="PET2BIDS"
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
wget \
unzip \
cmake \
build-essential \
pkg-config \
libturbojpeg0-dev \
libopenjp2-7-dev \
libjpeg-dev \
libcharls-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
# Build and install dcm2niix
RUN git clone https://github.com/rordenlab/dcm2niix.git && \
cd dcm2niix && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON .. && \
make && \
make install && \
ldconfig && \
cd / && rm -rf /tmp/dcm2niix
# Verify dcm2niix installation and ensure it's in PATH
RUN which dcm2niix && dcm2niix -h
ENV PATH="/usr/local/bin:${PATH}"
WORKDIR /out
# Install pypet2bids
RUN pip install pypet2bids