User commited on
Commit
ef77a1a
·
1 Parent(s): 72832ac

added sub directory and changed docker 2

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -9,6 +9,10 @@ COPY . /app
9
  RUN pip install --no-cache-dir -r requirements.txt
10
  RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
11
 
 
 
 
 
12
  # Expose the port your FastAPI app runs on (e.g. 7860)
13
  EXPOSE 7860
14
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
  RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
11
 
12
+ ENV HF_HOME=/app/.cache
13
+ ENV HF_DATASETS_CACHE=/app/.cache/datasets
14
+ ENV TRANSFORMERS_CACHE=/app/.cache/transformers
15
+
16
  # Expose the port your FastAPI app runs on (e.g. 7860)
17
  EXPOSE 7860
18