adbeg commited on
Commit
2b017d3
·
verified ·
1 Parent(s): 9ad539d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -4,12 +4,15 @@ RUN useradd -m -u 1000 user
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
- # Variables d'optimisation pour accélérer et fiabiliser l'installation de llama-cpp-python
8
  ENV CMAKE_ARGS="-DGGML_OPENMP=off"
9
  ENV FORCE_CMAKE=1
10
 
11
  WORKDIR /app
12
 
 
 
 
 
13
  COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
 
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
 
7
  ENV CMAKE_ARGS="-DGGML_OPENMP=off"
8
  ENV FORCE_CMAKE=1
9
 
10
  WORKDIR /app
11
 
12
+ # Téléchargement direct et robuste du modèle (2.4 Go) pendant la construction de l'image Docker
13
+ RUN pip install --no-cache-dir --upgrade pip && \
14
+ wget -O Phi-3-mini-4k-instruct-q4.gguf "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf"
15
+
16
  COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18