Spaces:
Paused
Paused
Commit
·
b82b73e
1
Parent(s):
3dbd13b
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,6 +7,9 @@ RUN apt install -y git python python3 python3-pip wget
|
|
| 7 |
|
| 8 |
EXPOSE 7860
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN useradd -m -u 1000 user
|
| 11 |
|
| 12 |
USER user
|
|
@@ -16,8 +19,6 @@ 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 |
|
|
|
|
| 7 |
|
| 8 |
EXPOSE 7860
|
| 9 |
|
| 10 |
+
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
| 11 |
+
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
|
| 12 |
+
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
|
| 15 |
USER user
|
|
|
|
| 19 |
|
| 20 |
WORKDIR $HOME/app
|
| 21 |
|
|
|
|
|
|
|
| 22 |
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --no-cache-dir
|
| 23 |
COPY requirements.txt ./
|
| 24 |
|