yjernite HF Staff commited on
Commit
28f2baf
·
verified ·
1 Parent(s): 24294b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -4,6 +4,9 @@ FROM python:3.9-slim
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
 
 
 
7
  # Copy the requirements file and install dependencies
8
  # This is done first to leverage Docker's layer caching
9
  COPY requirements.txt .
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Set the Hugging Face cache directory to a local folder
8
+ ENV HF_HOME=/app/cache
9
+
10
  # Copy the requirements file and install dependencies
11
  # This is done first to leverage Docker's layer caching
12
  COPY requirements.txt .