horiyouta commited on
Commit
5b8f880
·
1 Parent(s): 225effa

2508181743

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -12,6 +12,10 @@ COPY requirements.txt .
12
  # PyTorchはCPU版をインストールしてさらにサイズを削減
13
  RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
14
 
 
 
 
 
15
  # アプリケーションのコードをコンテナにコピー
16
  COPY . .
17
 
 
12
  # PyTorchはCPU版をインストールしてさらにサイズを削減
13
  RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
14
 
15
+ # ★★★ Hugging Faceライブラリのキャッシュディレクトリを指定 ★★★
16
+ # コンテナのルートディレクトリ(/)への書き込みを防ぐ
17
+ ENV HF_HOME /app/cache
18
+
19
  # アプリケーションのコードをコンテナにコピー
20
  COPY . .
21