lavanjv commited on
Commit
7c9df2e
1 Parent(s): 4acc7e1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -7,6 +7,13 @@ WORKDIR /app
7
  # Step 3: Copy the application files to the container
8
  COPY . /app
9
 
 
 
 
 
 
 
 
10
  ENV TRANSFORMERS_CACHE=/app/cache
11
 
12
  # Step 4: Install the required dependencies
 
7
  # Step 3: Copy the application files to the container
8
  COPY . /app
9
 
10
+ # Step 5: Create a writable cache directory
11
+ RUN mkdir /cache && chmod -R 777 /cache
12
+
13
+ # Step 6: Set the TRANSFORMERS_CACHE environment variable to the new cache directory
14
+ ENV TRANSFORMERS_CACHE=/cache
15
+
16
+
17
  ENV TRANSFORMERS_CACHE=/app/cache
18
 
19
  # Step 4: Install the required dependencies