forked from Donders-Institute/bidscoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim AS builder
# Make a dcm2niix build from the latest stable source code
RUN apt update && apt -y install git build-essential cmake; \
git clone https://github.com/rordenlab/dcm2niix.git; \
cd dcm2niix; mkdir build && cd build; \
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON ..; \
make install
# Or install the latest dcm2niix release from the base repository (= typically outdated)
# RUN apt update && apt -y install dcm2niix
FROM python:3.10-slim
# Install the dcm2niix build. NB: Obsolete with the new `pip install bidscoin[dcm2niix2bids]` extras option
COPY --from=builder /usr/local/bin/dcm2niix /usr/local/bin/dcm2niix
# First install pyqt5 as Debian package to solve dependencies issues occurring when installed with pip
# Then install the latest stable BIDScoin Qt5 release from Github (install the normal Qt6 branch from PyPi when using recent base images such as Ubuntu:22.04)
ENV PIP_NO_CACHE_DIR=off
RUN apt update && apt -y --no-install-recommends install pigz curl python3-pyqt5 python3-pyqt5.qtx11extras git && apt clean; \
pip install --upgrade pip; \
pip install bidscoin[spec2nii2bids,deface,pet2bids]@git+https://github.com/Donders-Institute/[email protected]+qt5