Skip to content

Commit

Permalink
clean up dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDunn committed Jan 26, 2024
1 parent 4e146c5 commit 1661fc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test-build.Dockerfile
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

0 comments on commit 1661fc4

Please sign in to comment.