yakine commited on
Commit
6237a44
·
verified ·
1 Parent(s): 6f00959

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -6,9 +6,12 @@ WORKDIR /app
6
 
7
  # Copy all files to the container
8
  COPY . .
 
 
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
 
12
 
13
  # Expose the FastAPI port
14
  EXPOSE 7860
 
6
 
7
  # Copy all files to the container
8
  COPY . .
9
+ ENV TRANSFORMERS_CACHE=/app/cache
10
+
11
 
12
  # Install dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
+ RUN mkdir -p /app/cache
15
 
16
  # Expose the FastAPI port
17
  EXPOSE 7860