Mridul2003 commited on
Commit
8adfd01
·
verified ·
1 Parent(s): 234c7f6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -1,5 +1,13 @@
1
  FROM python:3.10
2
 
 
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
 
1
  FROM python:3.10
2
 
3
+ # Create a writable cache directory
4
+ RUN mkdir -p /app/cache
5
+
6
+ # Set environment variables to redirect cache
7
+ ENV TRANSFORMERS_CACHE=/app/cache \
8
+ HF_HOME=/app/cache \
9
+ HF_DATASETS_CACHE=/app/cache
10
+
11
  WORKDIR /app
12
 
13
  COPY requirements.txt .