diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 55d0f3d..3a3d85f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -58,6 +58,7 @@ jobs: platforms: linux/amd64 build_base: ubuntu:22.04 runtime_base: ubuntu:22.04 + runtime_deps: libclblast1 extra_deps: libclblast-dev cmake_args: -DGGML_CLBLAST=On @@ -100,6 +101,7 @@ jobs: CMAKE_ARGS=${{matrix.config.cmake_args}} BUILD_BASE=${{matrix.config.build_base}} RUNTIME_BASE=${{matrix.config.runtime_base}} + RUNTIME_DEPS=${{matrix.config.runtime_deps}} - name: Build and push release (Main Latest Build) diff --git a/Dockerfile.default b/Dockerfile.default index 68ed25d..caaeb68 100644 --- a/Dockerfile.default +++ b/Dockerfile.default @@ -29,6 +29,10 @@ RUN make turbopilot FROM ${RUNTIME_BASE} AS runtime +ARG RUNTIME_DEPS="" + +RUN if [[ -z "${RUNTIME_DEPS}" ]] ; then echo "No runtime libs required" ; else apt-get update && apt-get install -y ${RUNTIME_DEPS} ; fi + WORKDIR /app