Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -6,9 +6,9 @@ WORKDIR /code
|
|
6 |
|
7 |
# requirements.txtをコンテナにコピー
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
-
run export HF_HOME=/
|
10 |
-
run export HF_DATASETS_CACHE=/
|
11 |
-
run export TRANSFORMERS_CACHE=/
|
12 |
|
13 |
# 依存関係をインストール
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
@@ -29,6 +29,7 @@ RUN cd ./GloSoc-Tec-prj1-EnLearn
|
|
29 |
WORKDIR /code/GloSoc-Tec-prj1-EnLearn
|
30 |
RUN mkdir /code/GloSoc-Tec-prj1-EnLearn/nltk
|
31 |
RUN export NLTK_DATA=/code/GloSoc-Tec-prj1-EnLearn/nltk
|
|
|
32 |
|
33 |
# アプリケーションの起動
|
34 |
CMD ["python3", "app.py"]
|
|
|
6 |
|
7 |
# requirements.txtをコンテナにコピー
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
run export HF_HOME=/code/GloSoc-Tec-prj1-EnLearn/hf_cache
|
10 |
+
run export HF_DATASETS_CACHE=/code/GloSoc-Tec-prj1-EnLearn/hf_datasets_cache
|
11 |
+
run export TRANSFORMERS_CACHE=/code/GloSoc-Tec-prj1-EnLearn/hf_transformers_cache
|
12 |
|
13 |
# 依存関係をインストール
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
29 |
WORKDIR /code/GloSoc-Tec-prj1-EnLearn
|
30 |
RUN mkdir /code/GloSoc-Tec-prj1-EnLearn/nltk
|
31 |
RUN export NLTK_DATA=/code/GloSoc-Tec-prj1-EnLearn/nltk
|
32 |
+
RUN chmod -R 777 /code/
|
33 |
|
34 |
# アプリケーションの起動
|
35 |
CMD ["python3", "app.py"]
|