You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
654 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. FROM debian:wheezy
  2. MAINTAINER Johannes Schickling "schickling.j@gmail.com"
  3. # install curl (needed to install rust)
  4. RUN apt-get update && apt-get install -y curl g++-multilib lib32stdc++6
  5. # install rust & cargo
  6. RUN curl -sL https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C /opt
  7. RUN bash -c "ln -s /opt/rust-nightly-x86_64-unknown-linux-gnu/bin/{rustc,rustdoc} /usr/local/bin/"
  8. # cleanup package manager
  9. RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
  10. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  11. # prepare dir
  12. RUN mkdir /source
  13. VOLUME ["/source"]
  14. WORKDIR /source
  15. CMD ["bash"]