-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
57 lines (50 loc) · 1.65 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
# Pull base image.
FROM ubuntu:16.04
MAINTAINER "Alex Seeholzer" <[email protected]>
ENV TERM=xterm \
TZ=Europe/Berlin \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
software-properties-common \
tzdata \
locales \
ssh \
curl \
wget \
git \
unzip \
build-essential \
autoconf \
libltdl-dev \
libreadline6-dev \
libncurses5-dev \
libgsl-dev \
openmpi-bin \
libopenmpi-dev \
libhdf5-dev \
pep8 \
python-minimal \
python-dev \
python-setuptools \
python-path \
python-numpy \
python-matplotlib \
python-scipy \
python-pip \
python-h5py \
cython=0.23.4-0ubuntu5 && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py; python /tmp/get-pip.py;
COPY Makefile /seeholzer-deger-2018/Makefile
COPY nest /seeholzer-deger-2018/nest
WORKDIR /seeholzer-deger-2018/
RUN make nest
COPY . /seeholzer-deger-2018
RUN pip install -r requirements.txt
ENV PYTHONPATH="/seeholzer-deger-2018/nest/nest_build/lib/python2.7/site-packages:/seeholzer-deger-2018/nest/nest_build/lib64/python2.7/site-packages:${PYTHONPATH}"
ENV PATH="/seeholzer-deger-2018/nest/nest_build/bin:${PATH}"
ENV DYLD_LIBRARY_PATH="/seeholzer-deger-2018/nest/nest_build/lib/nest:${DYLD_LIBRARY_PATH}"
ENV LD_LIBRARY_PATH="/seeholzer-deger-2018/nest/nest_build/lib/nest:${LD_LIBRARY_PATH}"