KunalThakare279 commited on
Commit
7204c64
·
verified ·
1 Parent(s): bf08545

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -9,11 +9,11 @@ WORKDIR /app
9
  # Copy the application files
10
  COPY . .
11
 
12
- # Create the .cache directory inside /app and set permissions
13
- RUN mkdir -p /app/.cache/huggingface && chown -R appuser:appgroup /app/.cache
14
 
15
- # Set environment variable to point to the cache directory
16
- ENV HF_HOME=/app/.cache/huggingface
17
 
18
  USER root
19
 
 
9
  # Copy the application files
10
  COPY . .
11
 
12
+ # Create a new cache directory outside of /app
13
+ RUN mkdir -p /cache/huggingface && chown -R appuser:appgroup /cache/huggingface
14
 
15
+ # Set environment variable to point to the new cache directory
16
+ ENV HF_HOME=/cache/huggingface
17
 
18
  USER root
19