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

Update Dockerfile

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