Lyon28 commited on
Commit
8a36255
·
verified ·
1 Parent(s): 3e4c841

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -5,4 +5,8 @@ COPY . .
5
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
5
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ # Menyetel HF_HOME environment variable untuk cache model Hugging Face
9
+ ENV HF_HOME /app/.cache/huggingface
10
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
11
+
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]