Pass non-interactive flag (-y) to disable tty
Flag is in rustup-init.sh:
72b9821072/rustup-init.sh (L51-L62)
This commit is contained in:
parent
6193f455bf
commit
31d0702171
|
@ -38,7 +38,7 @@ ENV PATH=/home/rust/.cargo/bin:/usr/local/musl/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
# interact with the user or fool around with TTYs. We also set the default
|
# interact with the user or fool around with TTYs. We also set the default
|
||||||
# `--target` to musl so that our users don't need to keep overriding it
|
# `--target` to musl so that our users don't need to keep overriding it
|
||||||
# manually.
|
# manually.
|
||||||
RUN curl https://sh.rustup.rs -sSf | sed 's,run "$_file" < /dev/tty,run "$_file" -y,' | sh && \
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
||||||
rustup default stable && \
|
rustup default stable && \
|
||||||
rustup target add x86_64-unknown-linux-musl
|
rustup target add x86_64-unknown-linux-musl
|
||||||
ADD cargo-config.toml /home/rust/.cargo/config
|
ADD cargo-config.toml /home/rust/.cargo/config
|
||||||
|
|
Loading…
Reference in a new issue