Luigi commited on
Commit
0586d3c
·
1 Parent(s): 4a7594f

add hf_cache folder

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -10,6 +10,12 @@ WORKDIR /code
10
 
11
  # Copy code
12
  COPY ./app /code/app
 
 
 
 
 
 
13
  COPY requirements.txt ./
14
 
15
  # Install Python dependencies
 
10
 
11
  # Copy code
12
  COPY ./app /code/app
13
+
14
+ # Create hf_cache and make it world-writable so the non-root runtime user can use it
15
+ RUN mkdir -p /code/app/hf_cache \
16
+ && chmod -R a+rwX /code/app/hf_cache
17
+
18
+ # Copy and install Python dependencies
19
  COPY requirements.txt ./
20
 
21
  # Install Python dependencies