Spaces:
Paused
Paused
Commit
·
d1f4c29
1
Parent(s):
880f5ab
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
FROM nvidia/cuda:11.6.0-base-ubuntu20.04
|
2 |
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
3 |
RUN apt update && \
|
4 |
-
apt install --no-install-recommends -y build-essential python3 python3-pip wget curl && \
|
5 |
apt clean && rm -rf /var/lib/apt/lists/*
|
6 |
|
7 |
EXPOSE 8000
|
@@ -10,7 +10,7 @@ WORKDIR /app
|
|
10 |
|
11 |
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
12 |
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
|
13 |
-
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install https://github.com/abetlen/llama-cpp-python
|
14 |
|
15 |
COPY requirements.txt ./
|
16 |
RUN pip install --upgrade pip && \
|
|
|
1 |
FROM nvidia/cuda:11.6.0-base-ubuntu20.04
|
2 |
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
3 |
RUN apt update && \
|
4 |
+
apt install --no-install-recommends -y build-essential python3 python3-pip wget curl git && \
|
5 |
apt clean && rm -rf /var/lib/apt/lists/*
|
6 |
|
7 |
EXPOSE 8000
|
|
|
10 |
|
11 |
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
12 |
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
|
13 |
+
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install git+https://github.com/abetlen/llama-cpp-python --no-cache-dir
|
14 |
|
15 |
COPY requirements.txt ./
|
16 |
RUN pip install --upgrade pip && \
|