-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (51 loc) · 2.11 KB
/
Dockerfile
File metadata and controls
57 lines (51 loc) · 2.11 KB
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
49
50
51
52
53
54
55
56
57
##################################################################################################
#
# This Dockerfile is used to build a Docker image for dolfin / ITK inter-operability.
#
# In particular, this will set up an environment with the following tools:
# - miniconda3 with python 3.11
# - FEniCS v2019.1.0
# - nibabel
# - meshio
# - neatmesh
# - dcm2niix
# - itk-elastix
# - SimpleITK
# - h5py
#
# The image is available at: https://hub.docker.com/r/gtpash/hgg-meshing:latest
#
##################################################################################################
FROM gtpash/tacc-ubuntu20-mvapich2.3-ib:latest
ARG DEBIAN_FRONTEND=noninteractive
########################################
# Install conda
########################################
ENV CONDA_DIR=/opt/conda
ENV PATH=${CONDA_DIR}/bin:${PATH}
# Download and install miniforge
RUN wget -q -P /tmp https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_DIR \
&& rm /tmp/Miniconda3-latest-Linux-x86_64.sh \
&& conda config --system --set auto_update_conda false \
&& conda config --system --set show_channel_urls true \
&& conda config --system --set default_threads 4 \
&& conda install --yes --no-update-deps python=3.11 \
&& ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
&& docker-clean
RUN conda init
########################################
# Install FEniCS
########################################
RUN conda install --yes -c conda-forge fenics==2019.1.0 matplotlib scipy
########################################
# Install the rest of the pipeline
########################################
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install --no-cache-dir nibabel \
&& python3 -m pip install --no-cache-dir meshio \
&& python3 -m pip install --no-cache-dir neatmesh \
&& python3 -m pip install --no-cache-dir dcm2niix \
&& python3 -m pip install --no-cache-dir itk-elastix \
&& python3 -m pip install --no-cache-dir SimpleITK \
&& python3 -m pip install --no-cache-dir h5py