Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -25,8 +25,8 @@ ENV PYTHONUNBUFFERED=True
|
|
25 |
# Set the TRANSFORMERS_CACHE environment variable
|
26 |
ENV TRANSFORMERS_CACHE=/app/cache
|
27 |
|
28 |
-
# Create the cache directory
|
29 |
-
RUN mkdir -p /app/cache
|
30 |
|
31 |
# Copy requirements.txt and install dependencies
|
32 |
COPY requirements.txt .
|
@@ -40,3 +40,4 @@ WORKDIR /app
|
|
40 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
41 |
|
42 |
|
|
|
|
25 |
# Set the TRANSFORMERS_CACHE environment variable
|
26 |
ENV TRANSFORMERS_CACHE=/app/cache
|
27 |
|
28 |
+
# Create the cache directory and set permissions
|
29 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
30 |
|
31 |
# Copy requirements.txt and install dependencies
|
32 |
COPY requirements.txt .
|
|
|
40 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
41 |
|
42 |
|
43 |
+
|