Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -9,6 +9,9 @@ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
|
| 9 |
# Cache dizinini belirle
|
| 10 |
ENV HF_HOME=/app/cache
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Python bağımlılıklarını yükle
|
| 13 |
COPY requirements.txt /app/requirements.txt
|
| 14 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
@@ -21,3 +24,4 @@ WORKDIR /app
|
|
| 21 |
CMD ["python", "app.py"]
|
| 22 |
|
| 23 |
|
|
|
|
|
|
| 9 |
# Cache dizinini belirle
|
| 10 |
ENV HF_HOME=/app/cache
|
| 11 |
|
| 12 |
+
# Gereksiz eski model cache’ini sil (opsiyonel, build sırasında temizlemek için)
|
| 13 |
+
RUN rm -rf /app/cache/hub/models--csebuetnlp--mT5_multilingual_XLSum || true
|
| 14 |
+
|
| 15 |
# Python bağımlılıklarını yükle
|
| 16 |
COPY requirements.txt /app/requirements.txt
|
| 17 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
| 24 |
CMD ["python", "app.py"]
|
| 25 |
|
| 26 |
|
| 27 |
+
|