File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,14 @@ FROM ${BASE_IMAGE} AS final
3838# Create non-root user
3939RUN groupadd --system modelrunner && useradd --system --gid modelrunner --create-home --home-dir /home/modelrunner modelrunner
4040
41- # Install ca-certificates for HTTPS
42- RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
41+ # Install ca-certificates for HTTPS and vulkan
42+ RUN apt-get update && \
43+ packages="ca-certificates" && \
44+ if [ "${LLAMA_SERVER_VARIANT}" = "generic" ] || [ "${LLAMA_SERVER_VARIANT}" = "cpu" ]; then \
45+ packages="$packages libvulkan1" ; \
46+ fi && \
47+ apt-get install -y --no-install-recommends "$packages" && \
48+ rm -rf /var/lib/apt/lists/*
4349
4450WORKDIR /app
4551
You can’t perform that action at this time.
0 commit comments