-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
48 lines (36 loc) · 1.15 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
FROM ubuntu:22.04
WORKDIR /maki
## Set up the base Ubuntu image
RUN apt -y update
RUN apt -y upgrade
RUN apt install -y build-essential
RUN apt-get update -qq -y
RUN apt-get install -qq -y wget
RUN apt install -y software-properties-common
RUN apt install -y git
# Get latest cmake
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ jammy main'
RUN apt update
RUN apt install -y cmake
# Get Python for LIT
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install -y python3.10 python3-pip
RUN python3 -m pip install lit
RUN apt install -y ninja-build
RUN apt install -y jq
RUN apt install -y lsb-release
RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 17 all
RUN apt install -y llvm-dev
# Install dependencies
RUN apt install -y libcurl4-gnutls-dev
RUN apt install -y libzstd-dev
RUN apt install -y libedit-dev
# Add clang alternative
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100
# Cleanup
RUN rm llvm.sh
# Copy maki files into docker
COPY . .