Tob De Ber
commited on
Commit
•
256ab9e
1
Parent(s):
35e01a1
slim container
Browse files- build_slim.sh +7 -0
- slim/Dockerfile +12 -0
build_slim.sh
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cp llama-server slim/
|
2 |
+
podman build --squash-all --tag bookworm:server slim
|
3 |
+
podman image prune -f
|
4 |
+
podman save localhost/bookworm:server >server.tar
|
5 |
+
time xz -6 -T0 server.tar
|
6 |
+
rm slim/llama-server
|
7 |
+
|
slim/Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:bookworm-slim
|
2 |
+
#RUN apt-get update && apt-get upgrade
|
3 |
+
#RUN apt-get install -y git git-lfs pip cmake python3
|
4 |
+
|
5 |
+
#RUN git clone https://github.com/ggerganov/llama.cpp.git
|
6 |
+
#RUN cd llama.cpp && make -j 32 llama-server
|
7 |
+
#RUN cp llama.cpp/llama-server .
|
8 |
+
#RUN rm -rf llama.cpp/
|
9 |
+
|
10 |
+
COPY ../llama-server .
|
11 |
+
|
12 |
+
CMD ["sleep", " infinity"]
|