rasouzadev commited on
Commit
92488aa
·
verified ·
1 Parent(s): f04b9b2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -2,6 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN mkdir -p /app/.cache && chmod 777 /app/.cache
6
+
7
+ ENV HF_HOME=/app/.cache
8
+ ENV TRANSFORMERS_CACHE=/app/.cache
9
+ ENV HF_DATASETS_CACHE=/app/.cache
10
+
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13