-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathnotebook.dockerfile
More file actions
executable file
·56 lines (47 loc) · 1.25 KB
/
Copy pathnotebook.dockerfile
File metadata and controls
executable file
·56 lines (47 loc) · 1.25 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
#!/usr/bin/env -S docker build --compress -t pvtmert/notebook -f
FROM alpine:latest
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" \
| tee -a /etc/apk/repositories
RUN apk add --no-cache \
build-base linux-headers \
lapack-dev gfortran \
hdf5-dev python3-dev
RUN pip3 install -U pip || true
RUN pip3 install -U numpy || true
RUN pip3 install -U scipy || true
RUN pip3 install -U keras || true
RUN pip3 install -U ipython || true
RUN pip3 install -U jupyter || true
#RUN pip3 install -U tensorflow || true
EXPOSE 80
WORKDIR /data
CMD jupyter notebook \
--allow-root \
--no-browser \
--ip=0.0.0.0 \
--port=80 \
--NotebookApp.token= \
--NotebookApp.allow_origin='*'
FROM debian:latest
RUN apt update
RUN apt install -y \
build-essential \
python3-dev \
python3-pip \
vim nano less
RUN pip3 install -U pip || true
RUN pip3 install -U numpy || true
RUN pip3 install -U scipy || true
RUN pip3 install -U keras || true
RUN pip3 install -U ipython || true
RUN pip3 install -U jupyter || true
RUN pip3 install -U tensorflow || true
EXPOSE 80
WORKDIR /data
CMD jupyter notebook \
--allow-root \
--no-browser \
--ip=0.0.0.0 \
--port=80 \
--NotebookApp.token= \
--NotebookApp.allow_origin='*'