doctorbetaq commited on
Commit
0440aaa
1 Parent(s): 94eb35b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -6,8 +6,9 @@ WORKDIR /code
6
  COPY ./requirements.txt /code/requirements.txt
7
  # 在映像檔中安裝requirements.txt中指定的依賴項
8
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
- # 設定環境變數 TRANSFORMERS_CACHE
10
  ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
 
11
  # 將你的應用程式複製到映像檔中的/code目錄
12
  COPY . .
13
 
 
6
  COPY ./requirements.txt /code/requirements.txt
7
  # 在映像檔中安裝requirements.txt中指定的依賴項
8
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+ # 設定環境變數 TRANSFORMERS_CACHE 和 SENTENCE_TRANSFORMERS_HOME
10
  ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
11
+ ENV SENTENCE_TRANSFORMERS_HOME=/tmp/sentence_transformers
12
  # 將你的應用程式複製到映像檔中的/code目錄
13
  COPY . .
14