-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e146c5
commit 1661fc4
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
ARG CUDA_VERSION=12.3.1 | ||
ARG UBUNTU_VERSION=22.04 | ||
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION} as base-cuda | ||
RUN DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y curl | ||
|
||
# Install requirements for rustup install + bindgen: https://rust-lang.github.io/rust-bindgen/requirements.html | ||
RUN DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y curl llvm-dev libclang-dev clang | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
ENV PATH=/root/.cargo/bin:$PATH | ||
# Install requirements for bindgen: https://rust-lang.github.io/rust-bindgen/requirements.html | ||
RUN apt update && apt install -y llvm-dev libclang-dev clang | ||
|
||
COPY . . | ||
RUN cargo build --package llama-cpp-sys-2 --features cublas |