mirror of
https://github.com/mudler/LocalAI.git
synced 2026-02-04 19:52:36 -05:00
Vulkansdk needs sudo
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@@ -32,7 +32,7 @@ RUN <<EOT bash
|
||||
if [ "${BUILD_TYPE}" = "vulkan" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
software-properties-common pciutils wget gpg-agent curl xz-utils && \
|
||||
software-properties-common pciutils sudo wget gpg-agent curl xz-utils && \
|
||||
echo "vulkan" > /run/localai/capability && \
|
||||
if [ "amd64" = "$TARGETARCH" ]; then
|
||||
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
|
||||
@@ -49,6 +49,7 @@ RUN <<EOT bash
|
||||
tar -xJf vulkan-sdk.tar.xz && \
|
||||
rm vulkan-sdk.tar.xz && \
|
||||
cd * && \
|
||||
sed -i 's/apt-get install/apt-get install -y/' vulkansdk && \
|
||||
./vulkansdk -j 1 && \
|
||||
cd ../.. && \
|
||||
rm -rf vulkan
|
||||
|
||||
Reference in New Issue
Block a user