Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -5,4 +5,8 @@ COPY . .
|
|
5 |
|
6 |
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
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"]
|