forked from falconre/falcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 860 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
FROM debian:buster
RUN apt-get update && \
apt-get -y install \
build-essential \
clang \
llvm \
wget && \
apt-get clean
RUN mkdir /opt/capstone && \
cd /opt/capstone && \
wget https://github.com/aquynh/capstone/archive/4.0.2.tar.gz && \
tar xf 4.0.2.tar.gz && \
cd capstone-4.0.2 && \
make -j && \
make install
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN set -eux; \
url="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init"; \
wget "$url"; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
cargo --version; \
rustc --version;
SHELL ["/bin/bash", "-c"]
COPY . /falcon/