-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
72 lines (58 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
72 lines (58 loc) · 1.51 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
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
FROM resin/armv7hf-debian-qemu
MAINTAINER reach4avik@yahoo.com
ENTRYPOINT []
USER root
ENV NB_USER pi
ENV NB_UID 1000
WORKDIR /root/
RUN [ "cross-build-start" ]
RUN apt-get update && \
apt-get install -y \
autoconf \
build-essential \
ca-certificates \
git \
locales \
wget \
make \
g++ \
patch \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libsqlite3-dev \
libssl-dev \
libreadline6-dev \
libreadline6 \
libopenblas-dev \
tk-dev \
gfortran
RUN apt-get purge -y python.*
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER
RUN [ "cross-build-end" ]
USER $NB_USER
WORKDIR /home/$NB_USER
RUN git clone https://github.com/yyuu/pyenv.git ~/.pyenv
RUN mkdir -p tmp
ENV TMPDIR=/home/$NB_USER/tmp
ENV PYENV_ROOT="/home/$NB_USER/.pyenv"
ENV PATH="$PYENV_ROOT/libexec/:$PATH"
ENV PATH="$PYENV_ROOT/shims/:$PATH"
RUN eval "$(pyenv init -)"
RUN pyenv install 3.5.2
RUN pyenv global 3.5.2
RUN pip install \
cython \
ipython \
numpy \
scipy \
sklearn \
pandas \
matplotlib \
seaborn \
jupyter \
picamera
CMD ["jupyter-notebook","--ip","0.0.0.0"]