Untitled diff

Created Diff never expires
3 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
20 lines
13 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
30 lines
FROM buildpack-deps:%%DEBIAN-SUITE%%
FROM debian:%%DEBIAN-SUITE%%-slim


ENV RUSTUP_HOME=/usr/local/rustup \
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=%%RUST-VERSION%%
RUST_VERSION=%%RUST-VERSION%%


RUN set -eux; \
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates \
gcc \
libc6-dev \
wget \
; \
%%ARCH-CASE%%; \
%%ARCH-CASE%%; \
url="https://static.rust-lang.org/rustup/archive/%%RUSTUP-VERSION%%/${rustArch}/rustup-init"; \
url="https://static.rust-lang.org/rustup/archive/%%RUSTUP-VERSION%%/${rustArch}/rustup-init"; \
wget "$url"; \
wget "$url"; \
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
chmod +x rustup-init; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \
rm rustup-init; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
rustup --version; \
cargo --version; \
cargo --version; \
rustc --version;
rustc --version; \

apt-get remove -y --auto-remove \
wget \
; \
rm -rf /var/lib/apt/lists/*;