mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-22 03:48:19 +02:00
devops : stop shadowing proper cuda libraries in runtime docker build (#3989)
The builder NEEDS the library for building because it has no GPU, but forcing the same in the RUNTIME build BREAKS GPU support.
This commit is contained in:
@@ -19,6 +19,8 @@ RUN apt-get update && \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
|
||||||
|
|
||||||
|
# The build stage has no real GPU/driver, so the linker needs the
|
||||||
|
# forward-compat libcuda stub to resolve CUDA driver-API symbols.
|
||||||
# Ref: https://stackoverflow.com/a/53464012
|
# Ref: https://stackoverflow.com/a/53464012
|
||||||
ENV CUDA_MAIN_VERSION=13.0
|
ENV CUDA_MAIN_VERSION=13.0
|
||||||
ENV LD_LIBRARY_PATH /usr/local/cuda-${CUDA_MAIN_VERSION}/compat:$LD_LIBRARY_PATH
|
ENV LD_LIBRARY_PATH /usr/local/cuda-${CUDA_MAIN_VERSION}/compat:$LD_LIBRARY_PATH
|
||||||
@@ -34,8 +36,6 @@ RUN find /app/build -name "*.o" -delete && \
|
|||||||
rm -rf /app/build/_deps
|
rm -rf /app/build/_deps
|
||||||
|
|
||||||
FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
|
FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
|
||||||
ENV CUDA_MAIN_VERSION=13.0
|
|
||||||
ENV LD_LIBRARY_PATH /usr/local/cuda-${CUDA_MAIN_VERSION}/compat:$LD_LIBRARY_PATH
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|||||||
Reference in New Issue
Block a user