docker : build only main and server in their images (#7782)

* add openmp lib to dockerfiles

* build only main and server in their docker images
This commit is contained in:
slaren
2024-06-06 07:19:49 +02:00
committed by GitHub
parent d67caea0d6
commit 2d08b7fbb4
5 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
# Enable CUDA
ENV LLAMA_CUDA=1
RUN make -j$(nproc)
RUN make -j$(nproc) main
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime

View File

@@ -40,6 +40,6 @@ ENV LLAMA_HIPBLAS=1
ENV CC=/opt/rocm/llvm/bin/clang
ENV CXX=/opt/rocm/llvm/bin/clang++
RUN make -j$(nproc)
RUN make -j$(nproc) main
ENTRYPOINT [ "/app/main" ]

View File

@@ -9,7 +9,7 @@ WORKDIR /app
COPY . .
RUN make -j$(nproc)
RUN make -j$(nproc) main
FROM ubuntu:$UBUNTU_VERSION as runtime

View File

@@ -25,7 +25,7 @@ ENV LLAMA_CUDA=1
# Enable cURL
ENV LLAMA_CURL=1
RUN make -j$(nproc)
RUN make -j$(nproc) server
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime

View File

@@ -11,7 +11,7 @@ COPY . .
ENV LLAMA_CURL=1
RUN make -j$(nproc)
RUN make -j$(nproc) server
FROM ubuntu:$UBUNTU_VERSION as runtime