supertskone commited on
Commit
e7dc147
·
verified ·
1 Parent(s): f4460e8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -7,6 +7,12 @@ WORKDIR /app
7
  # Copy the current directory contents into the container at /app
8
  COPY . /app
9
 
 
 
 
 
 
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir --upgrade pip
12
  RUN pip install --no-cache-dir -r requirements.txt
 
7
  # Copy the current directory contents into the container at /app
8
  COPY . /app
9
 
10
+ # Create the cache directory and set permissions
11
+ RUN mkdir -p /app/hf_cache && chmod 777 /app/hf_cache
12
+
13
+ # Set the HF_HOME environment variable
14
+ ENV HF_HOME=/app/hf_cache
15
+
16
  # Install any needed packages specified in requirements.txt
17
  RUN pip install --no-cache-dir --upgrade pip
18
  RUN pip install --no-cache-dir -r requirements.txt