-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (28 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
45 lines (28 loc) · 1.06 KB
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
FROM debian:9
MAINTAINER [email protected]
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get upgrade -y
# Set locale to US EN UTF8
RUN apt-get install locales -y && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && \
locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN dpkg-reconfigure locales
RUN apt-get install -y mercurial git vim tmux
RUN apt-get install -y ncurses-dev wget curl procps
# Get our python toolset
RUN apt-get install -y python3 python3-matplotlib python3-pillow
RUN apt-get install -y liblapack-dev libblas-dev hdf5-tools python3-tables
RUN apt-get install -y gfortran
RUN curl -Lvo get-pip.py https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py
COPY ./requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN mkdir .matplotlib
RUN echo "backend: Qt4Agg" > .matplotlib/matplotlibrc
VOLUME /data
EXPOSE 8888
CMD sh -c "/usr/local/bin/jupyter notebook --ip=0.0.0.0 --no-browser --notebook-dir=/data"