Skip to content

Commit 7877a84

Browse files
committed
Add SCCache to help reuse artifacts
1 parent 4510f97 commit 7877a84

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ RUN apt-get update && \
1010
git \
1111
libclang-dev \
1212
make \
13-
protobuf-compiler
13+
protobuf-compiler \
14+
pkg-config \
15+
libssl-dev
1416

1517
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
1618
RUN rustup target add wasm32v1-none
@@ -20,6 +22,10 @@ RUN rustup target add wasm32v1-none
2022
RUN rustup target add wasm32-unknown-unknown
2123
RUN rustup component add rust-src
2224

25+
RUN cargo install sccache
26+
ENV RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
27+
ENV SCCACHE_DIR=/opt/polkadot-sdk/.sccache
28+
2329
WORKDIR /opt
2430
ARG VERSION=stable2509
2531
RUN git clone https://github.com/paritytech/polkadot-sdk.git -b polkadot-$VERSION --depth 1

0 commit comments

Comments
 (0)