-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
82 lines (57 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ARG COMPILER_THREADS=4
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
wget \
gnupg \
cmake \
python3 \
python2 \
python3-pip\
g++ \
git \
dc
RUN mkdir /fsl_install && wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fslinstaller.py -P /fsl_install
RUN python2.7 /fsl_install/fslinstaller.py -d /usr/local/fsl
RUN apt-get update && apt-get install -y --no-install-recommends make
COPY ./ants_build_instructions.sh /ants/
RUN cd /ants && chmod 777 -R /ants \
&& ./ants_build_instructions.sh ${COMPILER_THREADS}
ENV PATH=${PATH}:/ants/install/bin:/usr/local/fsl/bin
RUN python3 -m pip install \
numpy \
pandas \
nipype\
scikit-learn \
matplotlib \
tqdm \
scipy \
wheel \
networkx \
nipy \
nipype\
matplotlib\
jupyter \
jupyterlab \
pymc3 \
graphviz \
statsmodels \
bctpy
RUN mkdir -p /.config/matplotlib && chmod 777 -R /.config/
RUN echo "alias python=python3" >> /etc/bash.bashrc && /bin/bash -c 'source /etc/bash.bashrc'
ENV MPLCONFIGDIR='/.config/matplotlib'
# COPY /app/ /app/
# Set FSL environment variables
ENV FSLDIR=/usr/local/fsl
ENV PATH=${FSLDIR}/bin:${PATH}
ENV FSLOUTPUTTYPE=NIFTI_GZ
# Source the FSL configuration script
# RUN echo "source ${FSLDIR}/etc/fslconf/fsl.sh" >> /etc/profile
SHELL ["/bin/bash", "-c"]
Run echo "alias python=python3" >> ~/.bashrc && \
echo "alias python=python3" >> /etc/profile && source /etc/profile
ENV HOME=/home
RUN chmod -R 777 /home
RUN mkdir /data && chmod -R 777 /data
# ENTRYPOINT ["/bin/bash", "/app/autorun.sh"]