Skip to content

Commit 2d08b7f

Browse files
authored
docker : build only main and server in their images (#7782)
* add openmp lib to dockerfiles * build only main and server in their docker images
1 parent d67caea commit 2d08b7f

5 files changed

+5
-5
lines changed

.devops/main-cuda.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
2323
# Enable CUDA
2424
ENV LLAMA_CUDA=1
2525

26-
RUN make -j$(nproc)
26+
RUN make -j$(nproc) main
2727

2828
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
2929

.devops/main-rocm.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ ENV LLAMA_HIPBLAS=1
4040
ENV CC=/opt/rocm/llvm/bin/clang
4141
ENV CXX=/opt/rocm/llvm/bin/clang++
4242

43-
RUN make -j$(nproc)
43+
RUN make -j$(nproc) main
4444

4545
ENTRYPOINT [ "/app/main" ]

.devops/main.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /app
99

1010
COPY . .
1111

12-
RUN make -j$(nproc)
12+
RUN make -j$(nproc) main
1313

1414
FROM ubuntu:$UBUNTU_VERSION as runtime
1515

.devops/server-cuda.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ENV LLAMA_CUDA=1
2525
# Enable cURL
2626
ENV LLAMA_CURL=1
2727

28-
RUN make -j$(nproc)
28+
RUN make -j$(nproc) server
2929

3030
FROM ${BASE_CUDA_RUN_CONTAINER} as runtime
3131

.devops/server.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY . .
1111

1212
ENV LLAMA_CURL=1
1313

14-
RUN make -j$(nproc)
14+
RUN make -j$(nproc) server
1515

1616
FROM ubuntu:$UBUNTU_VERSION as runtime
1717

0 commit comments

Comments
 (0)