first commit
This commit is contained in:
commit
daffaad8a1
4 changed files with 267 additions and 0 deletions
21
Dockerfile-debian.template
Normal file
21
Dockerfile-debian.template
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue