rohannsinghal commited on
Commit
60e69f7
·
1 Parent(s): 6c54652

fix: Set writable cache directory for deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -10,6 +10,13 @@ COPY ./requirements.txt /code/requirements.txt
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
 
 
 
 
 
 
 
13
  # Copy your application code into the container
14
  COPY ./app /code/app
15
 
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ # --- ADD THESE TWO LINES ---
14
+ # Create a writable directory for model caches
15
+ RUN mkdir /code/cache
16
+ # Tell the library to use this new directory
17
+ ENV TRANSFORMERS_CACHE=/code/cache
18
+ # --- END OF ADDITION ---
19
+
20
  # Copy your application code into the container
21
  COPY ./app /code/app
22