回答編集履歴
4
ファイル名追加
answer
CHANGED
@@ -22,7 +22,8 @@
|
|
22
22
|
WORKDIR /work
|
23
23
|
```
|
24
24
|
|
25
|
-
|
25
|
+
conda.txt
|
26
|
+
```text
|
26
27
|
scikit-learn==0.23.2
|
27
28
|
jupyterlab
|
28
29
|
jupyter
|
@@ -40,7 +41,8 @@
|
|
40
41
|
pydotplus==2.0.2
|
41
42
|
```
|
42
43
|
|
43
|
-
|
44
|
+
pip.txt
|
45
|
+
```text
|
44
46
|
setuptools-git==1.2
|
45
47
|
cmdstanpy==0.4
|
46
48
|
japanize-matplotlib==1.1.3
|
3
ファイル分割した。
answer
CHANGED
@@ -1,66 +1,77 @@
|
|
1
1
|
添付されたログだけではエラー原因を特定できなかったので、RUNコマンドを分割して少しずつエラー箇所を探っていきましょう。
|
2
2
|
|
3
3
|
一応下記のようにきれいにしてみました。
|
4
|
+
モジュールをすべてDockerfileに記載すると読みづらくなるので、conda.txtとpip.txtにそれぞれ分割しました。それによって管理もしやすくなり、可読性も高まります。
|
5
|
+
この二つのファイルを作成し、Dockerfileと同じディレクトリに配置してください。
|
4
6
|
|
5
7
|
```Dockerfile
|
6
8
|
FROM continuumio/miniconda3:4.7.12
|
7
|
-
RUN apt update -y --allow-releaseinfo-change
|
9
|
+
RUN apt update -y --allow-releaseinfo-change
|
8
|
-
|
10
|
+
RUN apt install -y build-essential graphviz fonts-ipafont
|
9
11
|
|
10
|
-
RUN conda install -y nodejs==6.11.2 && \
|
11
|
-
requests==2.25.0 && \
|
12
|
-
tqdm==4.54.0 && \
|
13
|
-
pip==20.3 && \
|
14
|
-
pandas==1.0.5 && \
|
15
|
-
numpy==1.19.2 && \
|
16
|
-
scipy==1.5.2 && \
|
17
|
-
matplotlib==3.3.2 && \
|
18
|
-
seaborn==0.11.0 && \
|
19
|
-
jupyter && \
|
20
|
-
jupyterlab && \
|
21
|
-
scikit-learn==0.23.2 && \
|
22
|
-
xlrd==1.2.0 && \
|
23
|
-
statsmodels==0.12.1
|
24
12
|
|
13
|
+
COPY conda.txt /tmp/conda.txt
|
14
|
+
RUN conda install -y --file /tmp/conda.txt
|
25
|
-
RUN
|
15
|
+
RUN conda install -y -c conda-forge fbprophet==0.6
|
26
|
-
cmdstanpy==0.4
|
27
16
|
|
17
|
+
COPY pip.txt /tmp/pip.txt
|
28
|
-
RUN
|
18
|
+
RUN pip install -r /tmp/pip.txt
|
29
|
-
fbprophet==0.6 && \
|
30
|
-
pydotplus==2.0.2
|
31
19
|
|
32
|
-
RUN pip install japanize-matplotlib==1.1.3 && \
|
33
|
-
pycaret==2.3.0 && \
|
34
|
-
interpret==0.2.2 && \
|
35
|
-
sweetviz==2.0.2 && \
|
36
|
-
openpyxl==3.0.5 && \
|
37
|
-
optuna==2.3.0 && \
|
38
|
-
python-pptx==0.6.18 && \
|
39
|
-
explainerdashboard==0.3.1 && \
|
40
|
-
sktime==0.4.3 && \
|
41
|
-
tsfresh==0.17.0 && \
|
42
|
-
xgboost==1.3.3 && \
|
43
|
-
catboost==0.24.4 && \
|
44
|
-
geopy==2.1.0 && \
|
45
|
-
beautifulsoup4==4.9.3 && \
|
46
|
-
streamlit== 0.74.1 && \
|
47
|
-
streamlit== 0.88.0 && \
|
48
|
-
streamlit-pandas-profiling==0.1.1 && \
|
49
|
-
orbit==1.0.17 && \
|
50
|
-
ginza && \
|
51
|
-
ja-ginza ==5.0.0 && \
|
52
|
-
ja-ginza-electra ==5.0.0 && \
|
53
|
-
gensim==4.1.0 && \
|
54
|
-
kneed==0.7.0
|
55
|
-
|
56
20
|
RUN sed -i s/^#font.family:.*sans-serif/font.family\ :\ IPAPGothic/ /opt/conda/lib/python3.7/site-packages/matplotlib/mpl-data/matplotlibrc
|
57
21
|
EXPOSE 8888 8501 8050 8502 8503
|
58
22
|
WORKDIR /work
|
59
23
|
```
|
60
24
|
|
25
|
+
```conda.txt
|
26
|
+
scikit-learn==0.23.2
|
27
|
+
jupyterlab
|
28
|
+
jupyter
|
29
|
+
nodejs==6.11.2
|
30
|
+
requests==2.25.0
|
31
|
+
tqdm==4.54.0
|
32
|
+
pip==20.3
|
33
|
+
pandas==1.0.5
|
34
|
+
numpy==1.19.2
|
35
|
+
scipy==1.5.2
|
36
|
+
matplotlib==3.3.2
|
37
|
+
seaborn==0.11.0
|
38
|
+
xlrd==1.2.0
|
39
|
+
statsmodels==0.12.1
|
40
|
+
pydotplus==2.0.2
|
41
|
+
```
|
42
|
+
|
43
|
+
```pip.txt
|
44
|
+
setuptools-git==1.2
|
45
|
+
cmdstanpy==0.4
|
46
|
+
japanize-matplotlib==1.1.3
|
47
|
+
pycaret==2.3.0
|
48
|
+
interpret==0.2.2
|
49
|
+
sweetviz==2.0.2
|
50
|
+
openpyxl==3.0.5
|
51
|
+
optuna==2.3.0
|
52
|
+
python-pptx==0.6.18
|
53
|
+
explainerdashboard==0.3.1
|
54
|
+
sktime==0.4.3
|
55
|
+
tsfresh==0.17.0
|
56
|
+
xgboost==1.3.3
|
57
|
+
catboost==0.24.4
|
58
|
+
geopy==2.1.0
|
59
|
+
beautifulsoup4==4.9.3
|
60
|
+
#streamlit== 0.74.1
|
61
|
+
streamlit== 0.88.0
|
62
|
+
streamlit-pandas-profiling==0.1.1
|
63
|
+
orbit==0.2
|
64
|
+
ginza
|
65
|
+
ja-ginza==5.0.0
|
66
|
+
ja-ginza-electra==5.0.0
|
67
|
+
gensim==4.1.0
|
68
|
+
kneed==0.7.0
|
69
|
+
```
|
70
|
+
|
61
71
|
分かった問題点としては
|
62
72
|
|
63
|
-
- `apt update` → `apt update -y` (修正済み)
|
73
|
+
- `apt update` → `apt update -y --allow-releaseinfo-change` (修正済み)
|
64
74
|
- `&&\` → `&& \` (修正済み)
|
65
75
|
- streamlitが `0.74.1`と `0.88.0`のどちらもインストールしようとしています
|
66
|
-
未修正なのでどちらかを選択してください
|
76
|
+
未修正なのでどちらかを選択してください。とりあえず`streamlit== 0.74.1`をコメントアウトした
|
77
|
+
- ginzaのバージョンによってja-ginzaとspacyのバージョンに依存関係が生じているので、解決が必要です。 (修正済み)
|
2
--allow-releaseinfo-changeを追加
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```Dockerfile
|
6
6
|
FROM continuumio/miniconda3:4.7.12
|
7
|
-
RUN apt update -y && \
|
7
|
+
RUN apt update -y --allow-releaseinfo-change && \
|
8
8
|
apt install -y build-essential graphviz fonts-ipafont
|
9
9
|
|
10
10
|
RUN conda install -y nodejs==6.11.2 && \
|
1
apt update -y に変更
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
```Dockerfile
|
6
6
|
FROM continuumio/miniconda3:4.7.12
|
7
|
-
RUN apt update && \
|
7
|
+
RUN apt update -y && \
|
8
8
|
apt install -y build-essential graphviz fonts-ipafont
|
9
9
|
|
10
10
|
RUN conda install -y nodejs==6.11.2 && \
|
@@ -60,6 +60,7 @@
|
|
60
60
|
|
61
61
|
分かった問題点としては
|
62
62
|
|
63
|
+
- `apt update` → `apt update -y` (修正済み)
|
63
64
|
- `&&\` → `&& \` (修正済み)
|
64
65
|
- streamlitが `0.74.1`と `0.88.0`のどちらもインストールしようとしています
|
65
66
|
未修正なのでどちらかを選択してください
|