Spaces:
Sleeping
Sleeping
Commit
·
e9cb74e
1
Parent(s):
d0232d6
updated permission to cache file
Browse files- .ipynb_checkpoints/Dockerfile-checkpoint +5 -1
- Dockerfile +5 -1
.ipynb_checkpoints/Dockerfile-checkpoint
CHANGED
|
@@ -23,7 +23,11 @@ COPY . .
|
|
| 23 |
|
| 24 |
RUN chmod +x /app/start.sh
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Expose the necessary ports
|
| 29 |
EXPOSE 8501 8502
|
|
|
|
| 23 |
|
| 24 |
RUN chmod +x /app/start.sh
|
| 25 |
|
| 26 |
+
# Create a cache directory that is writable
|
| 27 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
| 28 |
+
|
| 29 |
+
# Set the HF_HOME environment variable
|
| 30 |
+
ENV HF_HOME=/app/cache
|
| 31 |
|
| 32 |
# Expose the necessary ports
|
| 33 |
EXPOSE 8501 8502
|
Dockerfile
CHANGED
|
@@ -23,7 +23,11 @@ COPY . .
|
|
| 23 |
|
| 24 |
RUN chmod +x /app/start.sh
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Expose the necessary ports
|
| 29 |
EXPOSE 8501 8502
|
|
|
|
| 23 |
|
| 24 |
RUN chmod +x /app/start.sh
|
| 25 |
|
| 26 |
+
# Create a cache directory that is writable
|
| 27 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
| 28 |
+
|
| 29 |
+
# Set the HF_HOME environment variable
|
| 30 |
+
ENV HF_HOME=/app/cache
|
| 31 |
|
| 32 |
# Expose the necessary ports
|
| 33 |
EXPOSE 8501 8502
|