-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (38 loc) · 1.52 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
FROM ubuntu:latest
MAINTAINER Adrian Schneider <[email protected]>
# Install basic stuff
RUN apt-get update && apt-get install -y build-essential g++ python-dev autotools-dev libicu-dev build-essential \
libbz2-dev cmake git wget curl
# Install Boost
RUN cd && wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz \
&& tar xzvf boost_1_66_0.tar.gz \
&& cd boost_1_66_0 \
&& ./bootstrap.sh --prefix=/usr/local \
&& ./b2 \
&& ./b2 install
# Install CppAD
RUN cd && git clone https://github.com/coin-or/CppAD.git \
&& cd CppAD \
&& cmake -D cppad_prefix=/usr/local . \
&& make install
# Install Miniconda3
RUN apt-get -qq update && apt-get -qq -y install curl bzip2 \
&& curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -bfp /usr/local \
&& rm -rf /tmp/miniconda.sh \
&& conda install -y python=3 \
&& conda update conda \
&& apt-get -qq -y remove curl bzip2 \
&& apt-get -qq -y autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \
&& conda clean --all --yes
# Install Python packages
RUN conda install -y numpy scipy jupyter matplotlib nose
# Install Cython
RUN pip install cython
RUN cd /home/ && git clone https://github.com/adrianschneider94/forschungspraktikum.git && cd forschungspraktikum && pip install .
VOLUME /home/
EXPOSE 8888
WORKDIR /home/
ENTRYPOINT jupyter notebook --ip 0.0.0.0 --no-browser --allow-root