-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:22.04
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
g++ \
make \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Copy project source (see .dockerignore for exclusions)
COPY . /quant
WORKDIR /quant
# Build the library, tools, and tests
RUN cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DTQ_BUILD_TESTS=ON \
-DTQ_BUILD_BENCH=ON \
&& cmake --build build -j$(nproc)
# Run the test suite
RUN ctest --test-dir build --output-on-failure
# Default entrypoint: the quant inference CLI
# Usage: docker run quant models/model.gguf -p "Hello"
ENTRYPOINT ["./build/quant"]