Last active
August 29, 2015 14:23
-
-
Save tianon/f9cb156a4d2e683a76c5 to your computer and use it in GitHub Desktop.
Rust starter for Peter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
# pub 4096R/FA1BE5FE 2013-09-26 | |
# Key fingerprint = 108F 6620 5EAE B0AA A8DD 5E1C 85AB 96E6 FA1B E5FE | |
# uid Rust Language (Tag and Release Signing Key) <[email protected]> | |
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE | |
ENV RUST_VERSION 1.0.0 | |
RUN set -x \ | |
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* \ | |
&& curl -fsSL "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o rust.tar.gz \ | |
&& curl -fsSL "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.gz.asc" -o rust.tar.gz.asc \ | |
&& gpg --verify rust.tar.gz.asc \ | |
&& mkdir rust \ | |
&& tar -xf rust.tar.gz -C rust --strip-components 1 \ | |
&& ( cd rust && ./install.sh ) \ | |
&& rm -r rust.tar.gz* rust \ | |
&& apt-get purge -y --auto-remove ca-certificates curl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment