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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
2
  # 使用一个官方的 Python 运行时作为父镜像
3
  FROM python:3.11.0b4
4
  # 將工作目錄設定為/code
@@ -7,6 +6,8 @@ WORKDIR /code
7
  COPY ./requirements.txt /code/requirements.txt
8
  # 在映像檔中安裝requirements.txt中指定的依賴項
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
10
  # 將你的應用程式複製到映像檔中的/code目錄
11
  COPY . .
12
 
 
 
1
  # 使用一个官方的 Python 运行时作为父镜像
2
  FROM python:3.11.0b4
3
  # 將工作目錄設定為/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