simonko912 commited on
Commit
78c1a83
·
verified ·
1 Parent(s): 4fa9624

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -8
Dockerfile CHANGED
@@ -12,19 +12,24 @@ RUN apt-get update && apt-get install -y \
12
  curl \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Build llama.cpp
 
 
 
 
16
  WORKDIR /app/llama.cpp
17
- RUN cmake -B build -S . \
 
 
 
18
  && cmake --build build -j$(nproc)
19
- WORKDIR /app/llama.cpp
20
- RUN make -j
21
 
22
  # Download model
23
  WORKDIR /app
24
- RUN mkdir models
25
- RUN curl -L \
26
- https://huggingface.co/mradermacher/SLiNeP-GGUF/resolve/main/SLiNeP.Q4_K_M.gguf \
27
- -o models/slinep.gguf
28
 
29
  # Copy app
30
  COPY app.py /app/app.py
 
12
  curl \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Workdir
16
+ WORKDIR /app
17
+
18
+ # Clone llama.cpp + submodules
19
+ RUN git clone https://github.com/ggml-org/llama.cpp.git
20
  WORKDIR /app/llama.cpp
21
+ RUN git submodule update --init --recursive
22
+
23
+ # Build llama.cpp
24
+ RUN cmake -S . -B build \
25
  && cmake --build build -j$(nproc)
 
 
26
 
27
  # Download model
28
  WORKDIR /app
29
+ RUN mkdir -p models \
30
+ && curl -L \
31
+ https://huggingface.co/mradermacher/SLiNeP-GGUF/resolve/main/SLiNeP.Q4_K_M.gguf \
32
+ -o models/slinep.gguf
33
 
34
  # Copy app
35
  COPY app.py /app/app.py