forked from Artisan-Lab/RAPx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (33 loc) · 873 Bytes
/
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
FROM ubuntu:latest
LABEL authors="vaynnecol"
ENV PATH=/root/.cargo/bin:${PATH} \
HOST_TRIPLE=x86_64-unknown-linux-gnu
RUN apt-get update && \
apt-get install -y\
curl \
build-essential \
git \
ninja-build \
clang \
python3 \
z3 \
make \
cmake
RUN git --version; \
ninja --version; \
clang++ --version; \
python3 --version; \
z3 --version; \
make --version; \
cmake --version;
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; \
rustup --version;
WORKDIR /app
RUN git clone https://github.com/Artisan-Lab/RAP.git .
WORKDIR /app/rap
RUN git submodule update --init --recursive; \
cp ./config.toml ./rust/
WORKDIR /app/rap/rust
RUN ./x.py build --stage 2 compiler/rustc; \
rustup toolchain link stage2 build/${HOST_TRIPLE}/stage2; \
ENTRYPOINT ["top", "-b"]