Junr-syl commited on
Commit
522b706
1 Parent(s): 99164d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -9,6 +9,12 @@ ENV FLASK_ENV=production
9
  # Set the working directory in the container
10
  WORKDIR /app
11
 
 
 
 
 
 
 
12
  # Copy the current directory contents into the container at /app
13
  COPY . /app
14
 
 
9
  # Set the working directory in the container
10
  WORKDIR /app
11
 
12
+ # Set the Transformers cache directory to a writable location
13
+ ENV TRANSFORMERS_CACHE=/app/transformers_cache
14
+
15
+ # Create the cache directory and make it writable
16
+ RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE
17
+
18
  # Copy the current directory contents into the container at /app
19
  COPY . /app
20