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.

27 lines
771 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
10 years ago
10 years ago
10 years ago
  1. FROM debian:wheezy
  2. MAINTAINER Johannes Schickling "schickling.j@gmail.com"
  3. ENV triple x86_64-unknown-linux-gnu
  4. # install curl (needed to install rust)
  5. RUN apt-get update && apt-get install -y curl gdb g++-multilib lib32stdc++6
  6. # install rust
  7. RUN curl -sL https://static.rust-lang.org/dist/rust-nightly-$triple.tar.gz | tar xvz -C /tmp
  8. RUN /tmp/rust-nightly-$triple/install.sh
  9. # install cargo
  10. RUN curl -sL https://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz | tar xvz -C /tmp
  11. RUN /tmp/cargo-nightly-$triple/install.sh
  12. # cleanup package manager
  13. RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
  14. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  15. # prepare dir
  16. RUN mkdir /source
  17. VOLUME ["/source"]
  18. WORKDIR /source
  19. CMD ["bash"]