Spaces:
Paused
Paused
Commit
·
4900a40
1
Parent(s):
2a87d1e
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -4,6 +4,13 @@ ENV PYTHONUNBUFFERED 1
|
|
4 |
|
5 |
EXPOSE 7860
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
RUN useradd -m -u 1000 user
|
8 |
|
9 |
USER user
|
@@ -13,13 +20,6 @@ ENV HOME=/home/user \
|
|
13 |
|
14 |
WORKDIR $HOME/app
|
15 |
|
16 |
-
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
17 |
-
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
|
18 |
-
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --no-cache-dir
|
19 |
-
COPY requirements.txt ./
|
20 |
-
RUN pip install --upgrade pip && \
|
21 |
-
pip install --no-cache-dir --upgrade -r requirements.txt
|
22 |
-
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
25 |
RUN ls -al
|
|
|
4 |
|
5 |
EXPOSE 7860
|
6 |
|
7 |
+
RUN export PATH="/usr/local/cuda/bin:$PATH"
|
8 |
+
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
|
9 |
+
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --no-cache-dir
|
10 |
+
COPY requirements.txt ./
|
11 |
+
RUN pip install --upgrade pip && \
|
12 |
+
pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
+
|
14 |
RUN useradd -m -u 1000 user
|
15 |
|
16 |
USER user
|
|
|
20 |
|
21 |
WORKDIR $HOME/app
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
25 |
RUN ls -al
|