Spaces:
Running
Running
Commit
·
c6f309a
1
Parent(s):
df610fa
updated Dockerfile with less output
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -30,19 +30,19 @@ WORKDIR /home/user
|
|
30 |
RUN mkdir -p /home/user/code/models && \
|
31 |
mkdir -p /home/user/code/app/wwwroot && \
|
32 |
cd /home/user/code/models && \
|
33 |
-
wget https://huggingface.co/Mungert/Phi-4-mini-instruct.gguf/resolve/main/phi-4-mini-q4_0.gguf
|
34 |
|
35 |
|
36 |
# Clone and build OpenBLAS as the non-root user
|
37 |
RUN git clone https://github.com/OpenMathLib/OpenBLAS.git /home/user/code/models/OpenBLAS && \
|
38 |
cd /home/user/code/models/OpenBLAS && \
|
39 |
-
make -
|
40 |
|
41 |
# Switch to root for the OpenBLAS installation
|
42 |
USER root
|
43 |
RUN cd /home/user/code/models/OpenBLAS && \
|
44 |
-
make install && \
|
45 |
-
cp /opt/OpenBLAS/lib/libopenblas* /usr/local/lib/
|
46 |
|
47 |
# Switch back to the non-root user
|
48 |
USER user
|
@@ -52,7 +52,7 @@ RUN git clone https://github.com/ggerganov/llama.cpp /home/user/code/models/llam
|
|
52 |
cd /home/user/code/models/llama.cpp && \
|
53 |
export PKG_CONFIG_PATH=/opt/OpenBLAS/lib/pkgconfig:$PKG_CONFIG_PATHa && \
|
54 |
cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS=/home/user/code/models/OpenBLAS -DLLAMA_CURL=OFF && \
|
55 |
-
cmake --build build --config Release -
|
56 |
cp /home/user/code/models/llama.cpp/build/bin/* /home/user/code/models/llama.cpp/
|
57 |
|
58 |
|
|
|
30 |
RUN mkdir -p /home/user/code/models && \
|
31 |
mkdir -p /home/user/code/app/wwwroot && \
|
32 |
cd /home/user/code/models && \
|
33 |
+
wget -q https://huggingface.co/Mungert/Phi-4-mini-instruct.gguf/resolve/main/phi-4-mini-q4_0.gguf
|
34 |
|
35 |
|
36 |
# Clone and build OpenBLAS as the non-root user
|
37 |
RUN git clone https://github.com/OpenMathLib/OpenBLAS.git /home/user/code/models/OpenBLAS && \
|
38 |
cd /home/user/code/models/OpenBLAS && \
|
39 |
+
make -j2 > build.log 2>&1 || (tail -20 build.log && false)
|
40 |
|
41 |
# Switch to root for the OpenBLAS installation
|
42 |
USER root
|
43 |
RUN cd /home/user/code/models/OpenBLAS && \
|
44 |
+
make install > install.log 2>&1 || (tail -20 install.log && false) && \
|
45 |
+
cp /opt/OpenBLAS/lib/libopenblas* /usr/local/lib/
|
46 |
|
47 |
# Switch back to the non-root user
|
48 |
USER user
|
|
|
52 |
cd /home/user/code/models/llama.cpp && \
|
53 |
export PKG_CONFIG_PATH=/opt/OpenBLAS/lib/pkgconfig:$PKG_CONFIG_PATHa && \
|
54 |
cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS -DBLAS_INCLUDE_DIRS=/home/user/code/models/OpenBLAS -DLLAMA_CURL=OFF && \
|
55 |
+
cmake --build build --config Release -j2 && \
|
56 |
cp /home/user/code/models/llama.cpp/build/bin/* /home/user/code/models/llama.cpp/
|
57 |
|
58 |
|