From bea43e0c64dc2b1b03fcaf9641d3075bccd09069 Mon Sep 17 00:00:00 2001 From: JohnnyB Date: Fri, 20 Sep 2024 13:36:43 +0100 Subject: [PATCH] docker : add libsdl2-dev for container builds (#2424) * 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 | 2 +- .devops/main-cuda.Dockerfile | 2 +- .devops/main.Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devops/cublas.Dockerfile b/.devops/cublas.Dockerfile index ca87fdda..60a8edfb 100644 --- a/.devops/cublas.Dockerfile +++ b/.devops/cublas.Dockerfile @@ -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 diff --git a/.devops/main-cuda.Dockerfile b/.devops/main-cuda.Dockerfile index 674b64c2..0b7a9886 100644 --- a/.devops/main-cuda.Dockerfile +++ b/.devops/main-cuda.Dockerfile @@ -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 diff --git a/.devops/main.Dockerfile b/.devops/main.Dockerfile index f923a906..b8170e29 100644 --- a/.devops/main.Dockerfile +++ b/.devops/main.Dockerfile @@ -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