]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
docker : add libsdl2-dev for container builds (#2424)
authorJohnnyB <redacted>
Fri, 20 Sep 2024 12:36:43 +0000 (13:36 +0100)
committerGitHub <redacted>
Fri, 20 Sep 2024 12:36:43 +0000 (15:36 +0300)
* Added libsdl2-dev for SDL samples

Building talk-llama seems to fail here as there is no sdl.h.

* Adding libsdl2-dev for sdl.h

* Adding libsdl2-dev for sdl.h

.devops/cublas.Dockerfile
.devops/main-cuda.Dockerfile
.devops/main.Dockerfile

index ca87fdda086a23c3aa05d7f3bb4d86366090713f..60a8edfbb263325464db1c5c77cbcd35f0d2d81a 100644 (file)
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} as build
 ARG CUDA_DOCKER_ARCH=all
 
 RUN apt-get update && \
-    apt-get install -y build-essential git cmake
+    apt-get install -y build-essential git cmake libsdl2-dev
 
 WORKDIR /app
 
index 674b64c23df2a67b871698b5a4bd5007c00d9f71..0b7a988697ae800ae7f8dbd5da62473edda078ba 100644 (file)
@@ -17,7 +17,7 @@ ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
 ENV GGML_CUDA=1
 
 RUN apt-get update && \
-    apt-get install -y build-essential \
+    apt-get install -y build-essential libsdl2-dev \
     && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
 
 # Ref: https://stackoverflow.com/a/53464012
index f923a9063d8328db672e4ab6ec5275becc026b61..b8170e29561ae3e31675412b9b70d46db1efb202 100644 (file)
@@ -12,7 +12,7 @@ FROM ubuntu:22.04 AS runtime
 WORKDIR /app
 
 RUN apt-get update && \
-  apt-get install -y curl ffmpeg \
+  apt-get install -y curl ffmpeg libsdl2-dev \
   && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
 
 COPY --from=build /app /app