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.

22 lines
620 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
  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
  5. # install rust & cargo
  6. RUN curl -L https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C /opt/rust
  7. RUN bash -c "ln -s /opt/rust/bin/{rustc,rustdoc} /usr/local/bin/"
  8. RUN ls /opt/rust/bin
  9. # cleanup package manager
  10. RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
  11. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  12. # prepare dir
  13. RUN mkdir /source
  14. VOLUME ["/source"]
  15. WORKDIR /source
  16. CMD ["bash"]