-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 968 Bytes
/
Copy pathDockerfile
File metadata and controls
40 lines (32 loc) · 968 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
32
33
34
35
36
37
38
39
40
FROM debian:bookworm-slim AS builder
WORKDIR /wanco
COPY . /wanco
# install dependencies
RUN \
--mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get install -y \
ca-certificates lsb-release wget software-properties-common gnupg \
git \
tar \
build-essential \
cmake \
libprotobuf-dev \
protobuf-compiler \
libunwind-dev \
libelf-dev \
libzstd-dev \
libpolly-17-dev
# install llvm
RUN --mount=type=cache,target=/usr/lib/llvm-17 \
wget -O llvm.sh https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 17
ENV LLVM_SYS_170_PREFIX=/usr/lib/llvm-17
# install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# hyperfine for benchmarking
RUN cargo install hyperfine
# Build and install wanco
RUN mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make && make install
#ENTRYPOINT ["wanco"]