Created
March 28, 2018 21:15
-
-
Save svevang/e97e63c8147c2f4c01711a79d6a4f7d9 to your computer and use it in GitHub Desktop.
Dockerfile for testing Rust builds on linux
This file contains 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:stable | |
MAINTAINER Sam Vevang <sam.vevang@gmail.com> | |
# Nice things | |
RUN apt-get update && \ | |
apt-get install -y \ | |
vim \ | |
git \ | |
file \ | |
curl | |
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | |
RUN echo "source $HOME/.cargo/env" >> ~/.bashrc | |
# freshen the crate index | |
RUN /root/.cargo/bin/cargo search foo > /dev/null | |
# Needed to build python | |
RUN apt-get install -y \ | |
curl \ | |
vim \ | |
build-essential \ | |
libreadline-dev \ | |
libsqlite3-dev \ | |
libbz2-dev \ | |
libssl1.0-dev \ | |
zlib1g-dev \ | |
libsqlite3-dev | |
RUN apt-get clean | |
ADD rust-cpython /root/rust-cpython | |
ADD pipclient-tokenize /root/pipclient-tokenize | |
WORKDIR /root/pipclient-tokenize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment