ynyg commited on
Commit
0d8f221
·
verified ·
1 Parent(s): 3a7b39d

fix: 修復由於錯誤的下載目錄導致啓動失敗

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -39,7 +39,7 @@ COPY --from=builder --chown=appuser:appuser /app/.venv /app/.venv
39
  # 下載模型
40
  RUN python -c "from huggingface_hub import snapshot_download; \
41
  snapshot_download(repo_id='ynyg/Unified_Prompt_Guard', \
42
- local_dir='/app/models', \
43
  ignore_patterns=['*.ckpt', '*.pth', '*.git*'])"
44
 
45
  # 複製應用代碼 (建議先複製代碼再啟動)
 
39
  # 下載模型
40
  RUN python -c "from huggingface_hub import snapshot_download; \
41
  snapshot_download(repo_id='ynyg/Unified_Prompt_Guard', \
42
+ local_dir='/app/models/Unified_Prompt_Guard', \
43
  ignore_patterns=['*.ckpt', '*.pth', '*.git*'])"
44
 
45
  # 複製應用代碼 (建議先複製代碼再啟動)