Tob De Ber
commited on
Commit
•
a796f0d
1
Parent(s):
c3d6e83
add libraries to slim container
Browse files- build_slim.sh +2 -0
- slim/Dockerfile +2 -1
build_slim.sh
CHANGED
@@ -1,7 +1,9 @@
|
|
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 |
|
|
|
1 |
cp llama-server slim/
|
2 |
+
cp /lib/x86_64-linux-gnu/libgomp.so.1 slim/
|
3 |
podman build --squash-all --tag bookworm:server slim
|
4 |
podman image prune -f
|
5 |
podman save localhost/bookworm:server >server.tar
|
6 |
time xz -6 -T0 server.tar
|
7 |
rm slim/llama-server
|
8 |
+
rm slim/libgomp.so.1
|
9 |
|
slim/Dockerfile
CHANGED
@@ -7,6 +7,7 @@ FROM debian:bookworm-slim
|
|
7 |
#RUN cp llama.cpp/llama-server .
|
8 |
#RUN rm -rf llama.cpp/
|
9 |
|
10 |
-
COPY
|
|
|
11 |
|
12 |
CMD ["sleep", " infinity"]
|
|
|
7 |
#RUN cp llama.cpp/llama-server .
|
8 |
#RUN rm -rf llama.cpp/
|
9 |
|
10 |
+
COPY llama-server .
|
11 |
+
COPY libgomp.so.1 /lib/x86_64-linux-gnu/libgomp.so.1
|
12 |
|
13 |
CMD ["sleep", " infinity"]
|