From 9c1dacad7ffcf3988483575af78b79045b35d381 Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 6 Nov 2014 13:12:14 +0100 Subject: [PATCH] cargo --- rust/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index 87ac31d..9bec7c4 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -1,12 +1,18 @@ FROM debian:wheezy MAINTAINER Johannes Schickling "schickling.j@gmail.com" +ENV triple x86_64-unknown-linux-gnu + # install curl (needed to install rust) RUN apt-get update && apt-get install -y curl g++-multilib lib32stdc++6 -# install rust & cargo -RUN curl -sL https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C /tmp -RUN /tmp/rust-nightly-x86_64-unknown-linux-gnu/install.sh +# install rust +RUN curl -sL https://static.rust-lang.org/dist/rust-nightly-$triple.tar.gz | tar xvz -C /tmp +RUN /tmp/rust-nightly-$triple/install.sh + +# install cargo +RUN curl -sL https://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz | tar xvz -C /tmp +RUN /tmp/cargo-nightly-$triple/install.sh # cleanup package manager RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean