forked from neurosynth/neurosynth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (56 loc) · 1.36 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
# Set the base image to Ubuntu
FROM ubuntu:trusty
# File Author / Maintainer
MAINTAINER Elizabeth DuPre
# Update the sources list and install basic applications
RUN apt-get update && apt-get install -y --no-install-recommends \
tar \
git \
curl \
nano \
wget \
dialog \
net-tools \
build-essential \
# Dependencies for python and java libs
libpng-dev \
freetype* \
libfreetype6-dev \
liblapack-dev \
libatlas-base-dev \
gfortran \
pkg-config \
software-properties-common \
# Install Python and various packages
python \
python-dev \
python-distribute \
python-pip \
python-numpy \
python-scipy \
python-matplotlib \
ipython \
ipython-notebook \
python-pandas \
python-sympy \
python-beautifulsoup \
python-lxml \
python-nose \
python-tk
# Install Java for Mallet toolbox
RUN add-apt-repository -y ppa:openjdk-r/ppa
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-8-jdk \
openjdk-8-jre
RUN update-alternatives --config java
RUN update-alternatives --config javac
# Get pip to download and install requirements:
ADD requirements.txt /neurosynth/requirements.txt
WORKDIR /neurosynth
RUN pip install -r requirements.txt
ADD . /neurosynth
# install Mallet with curl
RUN curl -o mallet-2.0.7.tar.gz http://mallet.cs.umass.edu/dist/mallet-2.0.7.tar.gz
RUN tar xzf mallet-2.0.7.tar.gz
RUN rm mallet-2.0.7.tar.gz
RUN mv mallet-2.0.7 ./neurosynth/resources/mallet