Skip to content

Commit e69cbfc

Browse files
committed
Vulkansdk needs sudo
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 6023439 commit e69cbfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN <<EOT bash
3131
if [ "${BUILD_TYPE}" = "vulkan" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
3232
apt-get update && \
3333
apt-get install -y --no-install-recommends \
34-
software-properties-common pciutils wget gpg-agent curl xz-utils && \
34+
software-properties-common pciutils sudo wget gpg-agent curl xz-utils && \
3535
echo "vulkan" > /run/localai/capability && \
3636
if [ "amd64" = "$TARGETARCH" ]; then
3737
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
@@ -48,6 +48,7 @@ RUN <<EOT bash
4848
tar -xJf vulkan-sdk.tar.xz && \
4949
rm vulkan-sdk.tar.xz && \
5050
cd * && \
51+
sed -i 's/apt-get install/apt-get install -y/' vulkansdk && \
5152
./vulkansdk -j 1 && \
5253
cd ../.. && \
5354
rm -rf vulkan

0 commit comments

Comments
 (0)