Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -26,9 +26,12 @@ EXPOSE 7860
|
|
26 |
RUN --mount=type=secret,id=MATERIALS_PROJECT_API_KEY \
|
27 |
echo "Using secret during build"
|
28 |
|
|
|
|
|
|
|
|
|
29 |
# Set an environment variable for Hugging Face cache
|
30 |
ENV HF_HOME=/app/.cache
|
31 |
|
32 |
-
|
33 |
# Run the app
|
34 |
CMD ["python", "app.py"]
|
|
|
26 |
RUN --mount=type=secret,id=MATERIALS_PROJECT_API_KEY \
|
27 |
echo "Using secret during build"
|
28 |
|
29 |
+
# Create the cache directory and set permissions
|
30 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
31 |
+
|
32 |
+
|
33 |
# Set an environment variable for Hugging Face cache
|
34 |
ENV HF_HOME=/app/.cache
|
35 |
|
|
|
36 |
# Run the app
|
37 |
CMD ["python", "app.py"]
|