pujanpaudel commited on
Commit
79712c8
·
verified ·
1 Parent(s): 132e968

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -14,6 +14,9 @@ WORKDIR /code
14
  COPY ./requirements.txt /code/requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
 
 
 
17
  # 5. Install Python dependencies
18
  # Upgrade pip and install requirements, ensuring CPU PyTorch is used
19
  # Using --no-cache-dir makes the image smaller
 
14
  COPY ./requirements.txt /code/requirements.txt
15
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
+ ENV TRANSFORMERS_CACHE=/code/.cache
18
+ RUN mkdir -p /code/.cache && chmod -R 777 /code/.cache
19
+
20
  # 5. Install Python dependencies
21
  # Upgrade pip and install requirements, ensuring CPU PyTorch is used
22
  # Using --no-cache-dir makes the image smaller