Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading