Created
March 9, 2016 03:44
-
-
Save dustyfresh/392f3f7e0489ce69b0a7 to your computer and use it in GitHub Desktop.
Dockerfile to bootstrap Rust dev environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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