From bea7ebdb346bf7716ec5006d949544bbfcac0280 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Sat, 26 Aug 2023 14:16:39 +0100 Subject: [PATCH] correct runtime libs for openblas and clblast --- .github/workflows/docker-image.yml | 2 ++ Dockerfile.default | 4 ++++ 2 files changed, 6 insertions(+) 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