Skip to content

Commit

Permalink
Fixed Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Aug 10, 2024
1 parent 06bd7a1 commit a62dda3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.llamacpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update \
&& apt-get -y install libcurl4-openssl-dev
WORKDIR /app
COPY . .
RUN LLAMA_CURL=1 GGML_CUDA=1 CUDA_DOCKER_ARCH=all make -j$(nproc) llama-server
RUN LLAMA_CURL=1 GGML_CUDA=1 CUDA_DOCKER_ARCH=all make -j$(nproc) llamacpp

# runtime image
FROM --platform=${ARCH} ${BASE_IMAGE_RUNTIME} AS runtime
Expand Down
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,9 @@ docker-cuda: docker-dep

# Build docker container - assume we need to build the base images?
docker-cuda-push: docker-cuda
@echo "Building ${DOCKER_TAG_LLAMACPP}"
@${DOCKER} build \
--tag ${DOCKER_TAG_LLAMACPP} \
--build-arg ARCH=${ARCH} \
--build-arg BASE_IMAGE_BUILD=${DOCKER_TAG_BASE_BUILD} \
--build-arg BASE_IMAGE_RUNTIME=${DOCKER_TAG_BASE_RUNTIME} \
-f Dockerfile.llamacpp .
@echo push docker images
@${DOCKER} push ${DOCKER_TAG_BASE_BUILD}
@${DOCKER} push ${DOCKER_TAG_BASE_RUNTIME}

# Build llama libraries
llamacpp: submodule-checkout
Expand Down

0 comments on commit a62dda3

Please sign in to comment.