21 lines
No EOL
759 B
Text
21 lines
No EOL
759 B
Text
FROM buildpack-deps:%%DEBIAN-SUITE%%
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
|
|
|
|
ENV RUSTUP_HOME=/usr/local/rustup \
|
|
CARGO_HOME=/usr/local/cargo \
|
|
PATH=/usr/local/cargo/bin:$PATH \
|
|
RUST_VERSION=%%RUST-VERSION%%
|
|
|
|
RUN set -eux; \
|
|
%%ARCH-CASE%%; \
|
|
url="https://static.rust-lang.org/rustup/archive/%%RUSTUP-VERSION%%/${rustArch}/rustup-init"; \
|
|
wget "$url"; \
|
|
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
|
|
chmod +x rustup-init; \
|
|
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
|
|
rm rustup-init; \
|
|
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
|
|
rustup --version; \
|
|
cargo --version; \
|
|
rustc --version; |