Skip to content

Instantly share code, notes, and snippets.

FROM alpine:3.4
ENV RUST_VERSION 1.9.0
RUN apk add --no-cache 'curl'
# TODO: Verify download.
RUN curl -LOsS https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.gz \
&& ls -l \
&& tar -xzvf rustc-${RUST_VERSION}-src.tar.gz \
&& cd rustc-${RUST_VERSION}/ \