diff --git a/docker/runner.Dockerfile b/docker/runner.Dockerfile index aabea9446..6aed46429 100644 --- a/docker/runner.Dockerfile +++ b/docker/runner.Dockerfile @@ -87,6 +87,8 @@ USER runner WORKDIR /home/runner SHELL [ "/bin/bash", "-c" ] +RUN source /opt/rye/env + COPY rust-toolchain.toml /usr/src/rust-toolchain.toml # Rust version should align with one in `rust-toolchain.toml` and `WORKSPACE.bazel` @@ -97,6 +99,3 @@ ENV PATH="$PATH:/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/ ENV CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=rust-lld RUN cargo install --quiet cargo-zigbuild cargo-deny - -RUN curl -sSf https://rye.astral.sh/get | RYE_HOME=/home/runner/.rye RYE_VERSION="0.4.0" RYE_INSTALL_OPTION="--yes" bash -RUN source /home/runner/.rye/env