Skip to content
Merged
Changes from all commits
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
34 changes: 2 additions & 32 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@ SHELL ["/bin/bash", "-c"]

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --assume-yes apt-transport-https \
ca-certificates gnupg software-properties-common \
gcc git wget curl numactl
RUN apt install -y cmake libncurses5-dev libtinfo6

RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-linux-x86_64.sh \
-O /tmp/cmake-install.sh \
&& chmod +x /tmp/cmake-install.sh \
&& mkdir /opt/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/opt/cmake \
&& rm /tmp/cmake-install.sh
ENV PATH=/opt/cmake/bin:${PATH}
RUN apt-get update && apt-get install --assume-yes curl

RUN curl -L "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" \
-o "/tmp/Miniconda3.sh"
Expand All @@ -26,24 +15,5 @@ RUN cd /opt && eval "$(/opt/anaconda/bin/conda shell.bash hook)"
ENV PATH=/opt/anaconda/bin:${PATH}
ENV LD_LIBRARY_PATH=/opt/anaconda/lib:${LD_LIBRARY_PATH}

# python prereqs
RUN conda tos accept --override-channels --channel conda-forge
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
RUN conda install -c conda-forge git
RUN pip install numpy>=2.0.0
RUN pip install scipy>=1.13.0 cython nibabel dipy tqdm
RUN pip install pybind11

COPY . /opt/GPUStreamlines/

# compile
RUN cd /opt/GPUStreamlines && mkdir build && cd build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/exec/ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=g++ \
-DPYTHON_EXECUTABLE=$(which python) \
.. \
&& make && make install

WORKDIR /opt/exec
RUN cd /opt/GPUStreamlines && pip install .
Loading