-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (40 loc) · 1.42 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ================================================
# THE FIRST PART OF THIS Dockerfile is taken from
# https://github.com/nighres/nighres/blob/master/Dockerfile
# ================================================
# Start from the official Debian image
FROM debian:bullseye
# Install necessary tools and dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
git \
build-essential \
python3 \
python3-pip \
python3-dev \
libffi-dev \
openjdk-17-jdk \
wget \
&& rm -rf /var/lib/apt/lists/*
# Adjust JAVA_HOME if necessary and create a symbolic link to match JCC's expected JDK path
# RUN ls -l /usr/lib/jvm && exit 255
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
RUN ln -s $JAVA_HOME /usr/lib/jvm/temurin-17-jdk-amd64
# Install JCC
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install jcc
# Clone the nighres repository
RUN git clone https://github.com/nighres/nighres
# Change directory into the cloned repository, run the build script, and install nighres
WORKDIR /nighres
RUN ./build.sh && \
python3 -m pip install .
# ================================================
# CRASHS install
# ================================================
# Install the bigger dependencies for faster builds
RUN python3 -m pip install numpy torch pykeops monai nnunetv2
# Copy the contents
COPY . /tk/crashs
WORKDIR /tk/crashs
RUN python3 -m pip install .