Skip to content

Commit 9f27104

Browse files
authored
Merge pull request #169 from doringeman/Dockerfile
build: fix libvulkan1 installation
2 parents b9ca441 + 39e8c17 commit 9f27104

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ FROM docker/docker-model-backend-llamacpp:${LLAMA_SERVER_VERSION}-${LLAMA_SERVER
3535
# --- Final image ---
3636
FROM ${BASE_IMAGE} AS final
3737

38+
ARG LLAMA_SERVER_VARIANT
39+
3840
# Create non-root user
3941
RUN groupadd --system modelrunner && useradd --system --gid modelrunner --create-home --home-dir /home/modelrunner modelrunner
4042

@@ -44,7 +46,7 @@ RUN apt-get update && \
4446
if [ "${LLAMA_SERVER_VARIANT}" = "generic" ] || [ "${LLAMA_SERVER_VARIANT}" = "cpu" ]; then \
4547
packages="$packages libvulkan1"; \
4648
fi && \
47-
apt-get install -y --no-install-recommends "$packages" && \
49+
apt-get install -y --no-install-recommends $packages && \
4850
rm -rf /var/lib/apt/lists/*
4951

5052
WORKDIR /app

0 commit comments

Comments
 (0)