matthoffner commited on
Commit
3dbd13b
·
1 Parent(s): a433b1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -9,11 +9,6 @@ EXPOSE 7860
9
 
10
  RUN useradd -m -u 1000 user
11
 
12
- RUN export PATH="/usr/local/cuda/bin:$PATH"
13
- RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
14
- RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --no-cache-dir
15
- COPY requirements.txt ./
16
-
17
  USER user
18
 
19
  ENV HOME=/home/user \
@@ -21,6 +16,11 @@ ENV HOME=/home/user \
21
 
22
  WORKDIR $HOME/app
23
 
 
 
 
 
 
24
  RUN pip install --upgrade pip && \
25
  pip install --no-cache-dir --upgrade -r requirements.txt
26
 
 
9
 
10
  RUN useradd -m -u 1000 user
11
 
 
 
 
 
 
12
  USER user
13
 
14
  ENV HOME=/home/user \
 
16
 
17
  WORKDIR $HOME/app
18
 
19
+ RUN export PATH="/usr/local/cuda/bin:$PATH"
20
+ RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
21
+ RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --no-cache-dir
22
+ COPY requirements.txt ./
23
+
24
  RUN pip install --upgrade pip && \
25
  pip install --no-cache-dir --upgrade -r requirements.txt
26