Skip to content

Commit be8a314

Browse files
committed
Vulkansdk needs sudo
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 406d62d commit be8a314

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
@@ -32,7 +32,7 @@ RUN <<EOT bash
3232
if [ "${BUILD_TYPE}" = "vulkan" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
3333
apt-get update && \
3434
apt-get install -y --no-install-recommends \
35-
software-properties-common pciutils wget gpg-agent curl xz-utils && \
35+
software-properties-common pciutils sudo wget gpg-agent curl xz-utils && \
3636
echo "vulkan" > /run/localai/capability && \
3737
if [ "amd64" = "$TARGETARCH" ]; then
3838
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
@@ -49,6 +49,7 @@ RUN <<EOT bash
4949
tar -xJf vulkan-sdk.tar.xz && \
5050
rm vulkan-sdk.tar.xz && \
5151
cd * && \
52+
sed -i 's/apt-get install/apt-get install -y/' vulkansdk && \
5253
./vulkansdk -j 1 && \
5354
cd ../.. && \
5455
rm -rf vulkan

0 commit comments

Comments
 (0)