Browse Source

rust

pull/2/head
Johannes Schickling 10 years ago
parent
commit
325d2c0f85
  1. 20
      rust/Dockerfile
  2. 11
      rust/README.md

20
rust/Dockerfile

@ -0,0 +1,20 @@
FROM debian:wheezy
MAINTAINER Johannes Schickling "schickling.j@gmail.com"
# install curl (needed to install rust)
RUN apt-get update && apt-get install -y curl gdb
# install rust & cargo
RUN curl -s https://static.rust-lang.org/rustup.sh | sh
# cleanup package manager
RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# prepare dir
RUN mkdir -p /usr/src/app
VOLUME ["/usr/src/app"]
WORKDIR /usr/src/app
CMD ["bash"]

11
rust/README.md

@ -0,0 +1,11 @@
# octave
Lightweight nightly rust image including cargo and gdb
## Usage
```sh
$ docker run --rm -it -v /local/source:/usr/src/app schickling/rust
```
Mount your local source folder to the container and compile & run code inside.
Loading…
Cancel
Save