Enabling unstable tokio on fly

This commit is contained in:
godmodegalactus 2024-03-25 15:34:19 +01:00
parent a12d79aee8
commit 229d051bce
No known key found for this signature in database
GPG Key ID: 22DA4A30887FDA3C
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ FROM base as build
COPY --from=plan /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
ENV RUSTFLAGS="--cfg tokio_unstable"
RUN cargo build --release --bin lite-rpc --bin solana-lite-rpc-quic-forward-proxy
FROM debian:bookworm-slim as run
@ -21,4 +22,4 @@ RUN apt-get update && apt-get -y install ca-certificates libc6 libssl3 libssl-de
COPY --from=build /app/target/release/solana-lite-rpc-quic-forward-proxy /usr/local/bin/
COPY --from=build /app/target/release/lite-rpc /usr/local/bin/
CMD lite-rpc
CMD lite-rpc