Skip to content

Instantly share code, notes, and snippets.

@dustyfresh
Created March 9, 2016 03:44
Show Gist options
  • Save dustyfresh/392f3f7e0489ce69b0a7 to your computer and use it in GitHub Desktop.
Save dustyfresh/392f3f7e0489ce69b0a7 to your computer and use it in GitHub Desktop.
Dockerfile to bootstrap Rust dev environment
FROM debian:jessie
MAINTAINER dustyfresh, https://github.com/dustyfresh
RUN apt-get update && apt-get install --yes vim git build-essential wget libpcre3 libpcre3-dev libssl-dev python-setuptools python-pip supervisor curl sudo
# Add your .vimrc to the container
ADD ./vimrc /root/.vimrc
RUN wget https://static.rust-lang.org/rustup.sh; chmod +x rustup.sh; ./rustup.sh -y
RUN mkdir -pv /opt/code
# the code directory contains your Rust project / code
ADD ./code /opt/code
RUN cd /opt/code && cargo build
# Supervisord is introduced to manage the containers processes. Add rust.conf to /etc/supervisor.d/rust.conf to configure your Rust project to be run by Supervisord
CMD ["/usr/bin/supervisord", "-n"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment