Skip to content

Commit 5e32691

Browse files
committed
fix: dockerfile add tokio_unstable env
1 parent 464e63a commit 5e32691

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN --mount=target=. \
1313

1414
FROM chef AS builder
1515
WORKDIR /app
16+
ENV RUSTFLAGS="--cfg tokio_unstable"
1617
COPY --from=planner /recipe.json recipe.json
1718
RUN cargo chef cook --release --recipe-path recipe.json
1819
RUN --mount=target=. \
@@ -26,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
2627
rm -rf /var/lib/apt/lists/*
2728

2829
WORKDIR /app
29-
30+
ENV RUSTFLAGS="--cfg tokio_unstable"
3031
COPY --from=builder /app-target/release/rollup-node /bin/
3132

3233
EXPOSE 30303 30303/udp 9001 8545 8546

Dockerfile.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN cargo install cargo-chef --locked
88

99
FROM chef AS planner
1010
WORKDIR /app
11-
11+
ENV RUSTFLAGS="--cfg tokio_unstable"
1212
COPY . .
1313
# Hacky: Replace tests with dummy stub to avoid workspace member issues of top-level Cargo.toml.
1414
# This is needed because within the Docker integration tests we don't need the tests crate
@@ -27,6 +27,7 @@ RUN cargo chef prepare --recipe-path /recipe.json
2727

2828
FROM chef AS builder
2929
WORKDIR /app
30+
ENV RUSTFLAGS="--cfg tokio_unstable"
3031
COPY --from=planner /recipe.json recipe.json
3132
RUN --mount=type=cache,target=/usr/local/cargo/registry \
3233
--mount=type=cache,target=/usr/local/cargo/git \

0 commit comments

Comments
 (0)