質問編集履歴

2

Dockerfileの追記

2020/04/06 16:28

投稿

m42
m42

スコア19

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
 
36
36
 
37
- **Dockerfile**
37
+ ```Dockerfile
38
38
 
39
39
  FROM ubuntu:latest
40
40
 
@@ -91,3 +91,5 @@
91
91
  # install jupyterlab
92
92
 
93
93
  ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root", "--LabApp.token=''"]
94
+
95
+ ```

1

Dockerfileの追記

2020/04/06 16:28

投稿

m42
m42

スコア19

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- note
25
+ **Note**
26
26
 
27
27
  pipenvで作った環境ではjyupterlabにアクセスすることができるのですが、
28
28
 
@@ -31,3 +31,63 @@
31
31
 
32
32
 
33
33
  最近Anacondaをローカルからアンインストールしたばかりです。
34
+
35
+
36
+
37
+ **Dockerfile**
38
+
39
+ FROM ubuntu:latest
40
+
41
+
42
+
43
+ # update
44
+
45
+ RUN apt-get -y update && apt-get -y upgrade
46
+
47
+
48
+
49
+ # install basic packages
50
+
51
+ RUN apt-get install -y sudo wget bzip2
52
+
53
+ RUN apt-get install vim -y
54
+
55
+
56
+
57
+ ###install anaconda3
58
+
59
+ WORKDIR /opt
60
+
61
+ # download anaconda package
62
+
63
+ # archive -> https://repo.continuum.io/archive/
64
+
65
+ RUN wget https://repo.continuum.io/archive/Anaconda3-2019.10-Linux-x86_64.sh
66
+
67
+
68
+
69
+ RUN /bin/bash /opt/Anaconda3-2019.10-Linux-x86_64.sh -b -p /opt/anaconda3
70
+
71
+
72
+
73
+ RUN rm -f Anaconda3-2019.10-Linux-x86_64.sh
74
+
75
+ ENV PATH /opt/anaconda3/bin:$PATH
76
+
77
+
78
+
79
+ # update pip and conda
80
+
81
+ RUN pip install --upgrade pip
82
+
83
+
84
+
85
+ WORKDIR /
86
+
87
+ RUN mkdir /work
88
+
89
+
90
+
91
+ # install jupyterlab
92
+
93
+ ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root", "--LabApp.token=''"]