rockerritesh commited on
Commit
63b5a75
·
verified ·
1 Parent(s): 3ab268b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -8,6 +8,12 @@ WORKDIR /app
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
 
 
 
 
 
11
  # Copy the application code
12
  COPY main.py .
13
 
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Create cache directory with appropriate permissions
12
+ RUN mkdir -p /app/cache && chmod 777 /app/cache
13
+
14
+ # Set environment variable for Hugging Face cache
15
+ ENV TRANSFORMERS_CACHE=/app/cache
16
+
17
  # Copy the application code
18
  COPY main.py .
19