Hamza-cpp commited on
Commit
cc345c9
·
1 Parent(s): b05fcfe
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
-
2
  FROM python:3.9
3
 
4
  WORKDIR /app
@@ -9,10 +8,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
 
10
  COPY . .
11
 
12
- # Set environment variable for transformers cache
13
- ENV TRANSFORMERS_CACHE=/app/cache
14
 
15
- RUN mkdir -p /app/cache
16
 
17
  EXPOSE 5000
18
 
 
 
1
  FROM python:3.9
2
 
3
  WORKDIR /app
 
8
 
9
  COPY . .
10
 
11
+ # Set environment variable for Hugging Face cache
12
+ ENV HF_HOME=/app/cache
13
 
14
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
15
 
16
  EXPOSE 5000
17