mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-04 09:32:00 +00:00
devops: remove apt commands from distroless
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
@@ -35,15 +35,8 @@ FROM --platform=linux/s390x gcr.io/distroless/cc-debian12:nonroot AS server
|
|||||||
ENV LLAMA_ARG_HOST=0.0.0.0
|
ENV LLAMA_ARG_HOST=0.0.0.0
|
||||||
ENV LLAMA_ARG_PORT=8080
|
ENV LLAMA_ARG_PORT=8080
|
||||||
|
|
||||||
RUN apt update -y && \
|
|
||||||
apt upgrade -y && \
|
|
||||||
apt install -y libgomp1 curl && \
|
|
||||||
apt autoremove -y && \
|
|
||||||
apt clean -y
|
|
||||||
|
|
||||||
COPY --from=build /opt/llama.cpp/bin /
|
COPY --from=build /opt/llama.cpp/bin /
|
||||||
|
COPY --from=build /opt/llama.cpp/lib /
|
||||||
RUN ls -la | grep llama
|
|
||||||
|
|
||||||
WORKDIR /models
|
WORKDIR /models
|
||||||
USER nonroot:nonroot
|
USER nonroot:nonroot
|
||||||
|
|||||||
Reference in New Issue
Block a user