-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
34 lines (29 loc) · 811 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
# MSRV
FROM rust:1.55-slim
# Non-Rust tooling
ENV TZ=US/New_York
RUN apt-get update -y
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y \
rr \
tree \
vim \
musl-tools
# Rust tooling
RUN rustup install 1.56.0-x86_64-unknown-linux-gnu
RUN rustup toolchain install nightly
RUN rustup component add rust-src --toolchain nightly
RUN rustup component add llvm-tools-preview
RUN rustup target add x86_64-unknown-linux-musl
RUN cargo install cargo-fuzz
RUN cargo install cargo-binutils
RUN cargo install cargo-bloat
# Src import
RUN mkdir /scapegoat
WORKDIR /scapegoat
COPY . /scapegoat/
# Test (uses 1.56 BTree{Set,Map} feature in tests)
RUN rustup default 1.56.0-x86_64-unknown-linux-gnu
RUN cargo test
# MSRV (1.55) Build
RUN rustup default 1.55.0-x86_64-unknown-linux-gnu
RUN cargo build