Spaces:
Runtime error
Runtime error
Commit
·
5a4dfcf
1
Parent(s):
34063f1
less logging in build
Browse files- Dockerfile +4 -4
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 -j$(nproc)
|
| 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
|
|
|
|
| 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 -j$(nproc) > 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
|