forked from Macatools/macapype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_github
81 lines (65 loc) · 1.96 KB
/
Dockerfile_github
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
# Generated by: Neurodocker version 0.7.0+15.ga4940e3.dirty
# Latest release: Neurodocker version 0.7.0
#
# Thank you for using Neurodocker. If you discover any issues
# or ways to improve this software, please submit an issue or
# pull request on our GitHub repository:
#
# https://github.com/ReproNim/neurodocker
#
# Timestamp: 2020/12/02 18:33:44 UTC
FROM macatools/macapype_env:v0.1.2-spm
USER root
ARG DEBIAN_FRONTEND="noninteractive"
MAINTAINER David Meunier "[email protected]"
######################## Python packages
RUN apt-get update && apt-get install -y git python3-pip libpng-dev libfreetype6-dev libxft-dev libblas-dev liblapack-dev libatlas-base-dev gfortran libxml2-dev libxslt1-dev wget graphviz
RUN apt-get install -y python3-pil python3-pil.imagetk
RUN python3 -m pip install -U pip
RUN python3 -m pip install -U pillow
#RUN pip3 install pillow
#RUN apt-get install libx11-6 libxext6 libxt6 # matlab
RUN pip3 install xvfbwrapper \
psutil \
numpy \
scipy \
matplotlib \
statsmodels \
pandas \
networkx\
mock \
prov \
click \
funcsigs \
pydotplus \
pydot \
rdflib \
pbr \
nibabel \
packaging \
pytest \
install \
graphviz \
pybids \
nipype \
nilearn \
scikit-image \
brain-slam
############################################# install macapype from github
RUN mkdir -p /opt/packages/
ADD https://api.github.com/repos/macatools/macapype/git/refs/heads/master version.json
WORKDIR /opt/packages/
RUN git clone https://github.com/macatools/macapype.git
WORKDIR /opt/packages/macapype
RUN python3 setup.py develop
RUN echo $(which python) && \
echo $(which python3) && \
ln -s /usr/bin/python3 /usr/bin/python && \
ln -s /usr/bin/pip3 /usr/bin/pip
################################################## Finishing
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf \
/tmp/hsperfdata* \
/var/*/apt/*/partial \
/var/log/apt/term*