Spaces:
Runtime error
Runtime error
22
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
WORKDIR /app
|
|
@@ -9,10 +8,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 9 |
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
-
# Set environment variable for
|
| 13 |
-
ENV
|
| 14 |
|
| 15 |
-
RUN mkdir -p /app/cache
|
| 16 |
|
| 17 |
EXPOSE 5000
|
| 18 |
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
WORKDIR /app
|
|
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
+
# Set environment variable for Hugging Face cache
|
| 12 |
+
ENV HF_HOME=/app/cache
|
| 13 |
|
| 14 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
| 15 |
|
| 16 |
EXPOSE 5000
|
| 17 |
|