Merge pull request #3 from svend/non-interactive

Pass non-interactive flag (-y) to disable tty
This commit is contained in:
Eric Kidd 2016-05-05 06:42:32 -04:00
commit 335b88cd06

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 # 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