Spaces:
Sleeping
Sleeping
Commit
·
a50bf3c
1
Parent(s):
52474db
handle both ar and eng
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -5,6 +5,12 @@ WORKDIR /app
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
EXPOSE 7860
|
|
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
+
# Create Hugging Face cache directory with permissions
|
| 9 |
+
ENV HF_HOME=/app/.cache
|
| 10 |
+
ENV TRANSFORMERS_CACHE=/app/.cache
|
| 11 |
+
ENV HF_HUB_CACHE=/app/.cache
|
| 12 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 13 |
+
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
EXPOSE 7860
|