-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (46 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
52 lines (46 loc) · 1.27 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
FROM tensorflow/tensorflow:2.17.0
ENV HOME=/workspace
WORKDIR $HOME
# Set environment variables for optimal threading
ENV TF_NUM_INTEROP_THREADS=8 \
TF_NUM_INTRAOP_THREADS=8 \
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=8 \
OPENBLAS_NUM_THREADS=8 \
MKL_NUM_THREADS=8 \
MPLBACKEND=Agg
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Upgrade pip and install Python libraries
RUN pip install --upgrade pip \
&& pip install \
psrecord \
numpy \
pandas \
scipy \
matplotlib \
scikit-learn \
ipython \
jupyterlab \
antspyx==0.6.3 \
antspynet==0.3.2 \
antspyt1w==1.1.3 \
antspymm==1.6.5 \
siq==0.4.2
# for downloading example data from open neuro
RUN pip3 --no-cache-dir install --upgrade awscli
###########
#
RUN git clone https://github.com/stnava/ANTPD_antspymm.git ${HOME}/ANTPD_antspymm
RUN python ${HOME}/ANTPD_antspymm/src/get_antsxnet_data.py ${HOME}/.keras
# RUN cd ${HOME}/ANTPD_antspymm && bash src/download_docker.sh
# data is in ${HOME}/.keras/, ~/.antspymm and bids folders
# Default command
CMD ["bash"]