Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -25,6 +25,10 @@ EXPOSE 7860
|
|
| 25 |
# Example of using a build-time secret
|
| 26 |
RUN --mount=type=secret,id=MATERIALS_PROJECT_API_KEY \
|
| 27 |
echo "Using secret during build"
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Run the app
|
| 30 |
CMD ["python", "app.py"]
|
|
|
|
| 25 |
# Example of using a build-time secret
|
| 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"]
|