Skip to content

Commit 6cc4e5b

Browse files
committed
Apply [stable2512] Backport 10365
1 parent 37bca58 commit 6cc4e5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM docker.io/rust:1.92-slim-trixie AS builder
66
RUN apt-get update && \
77
apt-get -y dist-upgrade && \
88
apt-get -y install \
9+
curl \
910
g++ \
1011
git \
1112
libclang-dev \
@@ -19,6 +20,12 @@ WORKDIR /opt
1920
ARG VERSION=stable2512
2021
RUN git clone https://github.com/paritytech/polkadot-sdk.git -b polkadot-$VERSION --depth 1
2122
WORKDIR /opt/polkadot-sdk
23+
# Apply `[stable2512] Backport 10365` patch only for stable2512
24+
RUN if [ "$VERSION" = "stable2512" ]; then \
25+
curl -L https://github.com/paritytech/polkadot-sdk/pull/10706.patch -o /tmp/fix.patch && \
26+
patch -p1 < /tmp/fix.patch && \
27+
rm -f /tmp/fix.patch; \
28+
fi
2229
RUN cargo build --locked \
2330
--profile production \
2431
--bin polkadot \

0 commit comments

Comments
 (0)