Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -6,8 +6,14 @@ COPY requirements.txt .
|
|
6 |
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
COPY app.py .
|
9 |
-
COPY ./data /app/data
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
EXPOSE 7860
|
13 |
|
|
|
6 |
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
COPY app.py .
|
9 |
+
COPY ./data /app/data # Adjusted to match your path
|
10 |
|
11 |
+
# Create a writable cache directory
|
12 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
13 |
+
|
14 |
+
# Set environment variables for huggingface_hub and transformers
|
15 |
+
ENV HF_HOME=/app/cache
|
16 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
17 |
|
18 |
EXPOSE 7860
|
19 |
|