-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.llvm
41 lines (30 loc) · 977 Bytes
/
Dockerfile.llvm
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 ubuntu:23.04 as builder
ARG DEBIAN_FRONTEND=noninteractive
# Installing dependencies
RUN apt-get update && apt-get install -y \
git \
vim \
cmake \
libicu-dev \
lsb-release software-properties-common gnupg \
wget \
screen \
autoconf \
ninja-build \
build-essential \
libzstd-dev \
python3 python3-pip
# Install LLVM 17
RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh
WORKDIR /home/bistra/
COPY CMakeLists.txt /home/bistra/CMakeLists.txt
COPY examples /home/bistra/examples/
COPY include /home/bistra/include/
COPY lib /home/bistra/lib/
COPY tests/ /home/bistra/tests/
COPY tools/ /home/bistra/tools/
RUN mkdir build && mkdir install && cd build && cmake -G Ninja .. -DCMAKE_INSTALL_PREFIX=/home/bistra/install && ninja install
RUN ls /home/bistra/install
FROM ubuntu:23.04
WORKDIR /home/bistra/
COPY --from=builder /home/bistra/install /home/bistra/