This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
41 lines (37 loc) · 1.57 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
FROM registry.parity.io/parity/infrastructure/scripts/base-ci-linux:latest
# metadata
ARG VCS_REF
ARG BUILD_DATE
LABEL io.parity.image.authors="[email protected]" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="registry.parity.io/parity/infrastructure/scripts/ink-ci-linux" \
io.parity.image.description="Inherits from base-ci-linux:latest. \
libelf-dev libdw-dev zlib1g-dev; kcov; rust nightly clippy rustfmt cargo-kcov" \
io.parity.image.source="https://github.com/paritytech/scripts/blob/${VCS_REF}/\
dockerfiles/ink-ci-linux/Dockerfile" \
io.parity.image.documentation="https://github.com/paritytech/scripts/blob/${VCS_REF}/\
dockerfiles/ink-ci-linux/README.md" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}"
WORKDIR /builds
# install specific Rust nightly toolchain
# see on https://rust-lang.github.io/rustup-components-history/
RUN rustup default nightly-2020-04-07; \
# install wasm32 target for this toolchain
rustup target add --toolchain nightly-2020-04-07 wasm32-unknown-unknown; \
# install cargo tools
rustup component add rustfmt clippy; \
cargo install cargo-tarpaulin; \
cargo install --git https://github.com/paritytech/cargo-contract; \
# versions
rustup show; \
cargo --version; \
# cargo clean up
# removes compilation artifacts cargo install creates (>250M)
rm -rf $CARGO_HOME/registry; \
# removes toolchain's html docs and autocompletions (>300M for each toolchain)
rm -rf /usr/local/rustup/toolchains/*/share; \
# apt clean up
apt-get autoremove -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;