IAMJB HF staff commited on
Commit
67b5c0f
1 Parent(s): 598a260

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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"]