wenbemi commited on
Commit
3308e49
·
verified ·
1 Parent(s): e74700f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -28,6 +28,15 @@ ENV HOME=/app
28
  ENV STREAMLIT_HOME=/app/.streamlit
29
  RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
30
 
 
 
 
 
 
 
 
 
 
31
  # 8. 포트 개방
32
  EXPOSE 8501
33
 
 
28
  ENV STREAMLIT_HOME=/app/.streamlit
29
  RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
30
 
31
+ # 권장: 캐시 경로를 환경변수로 고정
32
+ ENV HF_HOME=/tmp/hf-home \
33
+ TRANSFORMERS_CACHE=/tmp/hf-cache \
34
+ HUGGINGFACE_HUB_CACHE=/tmp/hf-cache \
35
+ TORCH_HOME=/tmp/torch-cache \
36
+ XDG_CACHE_HOME=/tmp/xdg-cache
37
+
38
+ RUN mkdir -p /tmp/hf-home /tmp/hf-cache /tmp/torch-cache /tmp/xdg-cache
39
+
40
  # 8. 포트 개방
41
  EXPOSE 8501
42