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:
Svend Sorensen 2016-05-04 13:02:00 -05:00
parent 6193f455bf
commit 31d0702171

View file

@ -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
# `--target` to musl so that our users don't need to keep overriding it
# 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 target add x86_64-unknown-linux-musl
ADD cargo-config.toml /home/rust/.cargo/config