ky32 commited on
Commit
9a5d3a1
·
verified ·
1 Parent(s): c2bba25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -9,7 +9,9 @@ ENV HOME=/home/user \
9
 
10
  WORKDIR $HOME/app
11
 
12
- # Install build and runtime dependencies
 
 
13
  RUN apt-get update && \
14
  apt-get install -y \
15
  libopenblas-dev \
@@ -26,9 +28,7 @@ RUN chmod 777 /model
26
 
27
  RUN curl -L https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_K_M.gguf -o model/gguf-model.bin
28
 
29
-
30
  COPY ./requirements.txt /code/requirements.txt
31
-
32
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
33
 
34
  COPY . .
 
9
 
10
  WORKDIR $HOME/app
11
 
12
+ RUN pip install --no-cache-dir --upgrade pip
13
+ COPY --chown=user . $HOME/app
14
+
15
  RUN apt-get update && \
16
  apt-get install -y \
17
  libopenblas-dev \
 
28
 
29
  RUN curl -L https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct-v0.1.Q4_K_M.gguf -o model/gguf-model.bin
30
 
 
31
  COPY ./requirements.txt /code/requirements.txt
 
32
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
33
 
34
  COPY . .