zhangtao commited on
Commit
0a8f41c
·
1 Parent(s): f003d52

充分利用Dockerfile的cache,避免重复下载

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -5,14 +5,14 @@ FROM python:3.10
5
 
6
  WORKDIR /code
7
 
 
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
14
- RUN wget https://huggingface.co/TheBloke/NeuralHermes-2.5-Mistral-7B-GGUF/resolve/main/neuralhermes-2.5-mistral-7b.Q5_K_M.gguf?download=true -O neuralhermes-2.5-mistral-7b.Q5_K_M.gguf
15
-
16
  ENV MPLCONFIGDIR /code/matplotlib/
17
 
18
  CMD ["python", "app.py"]
 
5
 
6
  WORKDIR /code
7
 
8
+ RUN wget https://huggingface.co/TheBloke/NeuralHermes-2.5-Mistral-7B-GGUF/resolve/main/neuralhermes-2.5-mistral-7b.Q5_K_M.gguf?download=true -O neuralhermes-2.5-mistral-7b.Q5_K_M.gguf
9
+
10
  COPY ./requirements.txt /code/requirements.txt
11
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
 
 
16
  ENV MPLCONFIGDIR /code/matplotlib/
17
 
18
  CMD ["python", "app.py"]