Euryeth commited on
Commit
4a92b92
·
verified ·
1 Parent(s): c278a4e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
  FROM python:3.9
2
 
3
- # Create writable cache directory
4
  RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
5
 
 
 
 
 
 
 
6
  WORKDIR /app
7
  COPY . .
8
  RUN pip install --no-cache-dir -r requirements.txt
 
1
  FROM python:3.9
2
 
3
+ # Create writable cache with proper permissions
4
  RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
5
 
6
+ # Set environment variables at OS level
7
+ ENV TRANSFORMERS_CACHE=/tmp/cache
8
+ ENV HF_HOME=/tmp/cache
9
+ ENV HF_DATASETS_CACHE=/tmp/cache
10
+ ENV HUGGINGFACE_HUB_CACHE=/tmp/cache
11
+
12
  WORKDIR /app
13
  COPY . .
14
  RUN pip install --no-cache-dir -r requirements.txt