Marcin-XStudio commited on
Commit
eecbef6
·
1 Parent(s): c4a2517

copy requirements

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -2,10 +2,11 @@ FROM python:3.10-slim
2
  WORKDIR /app
3
 
4
  # 1) Variables pour rediriger tous les caches HF
5
- ENV HF_HOME="/app/model_cache/hf_cache"
6
- ENV TRANSFORMERS_CACHE="/app/model_cache/transformers_cache"
7
- ENV HF_HUB_CACHE="/app/model_cache/hf_hub_cache"
8
- ENV HF_DATASETS_CACHE="/app/model_cache/datasets_cache"
 
9
 
10
  RUN apt-get update && apt-get install -y \
11
  build-essential \
@@ -40,4 +41,5 @@ RUN chmod -R a+rX /app/model_cache \
40
 
41
  # 5) Copier le code et démarrer
42
  COPY . .
 
43
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
  WORKDIR /app
3
 
4
  # 1) Variables pour rediriger tous les caches HF
5
+ ENV HF_HOME="/app/model_cache/hf_cache"
6
+ ENV HF_HUB_CACHE="/app/model_cache/hf_cache/hub"
7
+ ENV TRANSFORMERS_CACHE="/app/model_cache/hf_cache/transformers"
8
+
9
+ COPY requirements.txt .
10
 
11
  RUN apt-get update && apt-get install -y \
12
  build-essential \
 
41
 
42
  # 5) Copier le code et démarrer
43
  COPY . .
44
+
45
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]