Skip to content

Instantly share code, notes, and snippets.

@svevang
Created March 28, 2018 21:15
Show Gist options
  • Save svevang/e97e63c8147c2f4c01711a79d6a4f7d9 to your computer and use it in GitHub Desktop.
Save svevang/e97e63c8147c2f4c01711a79d6a4f7d9 to your computer and use it in GitHub Desktop.
Dockerfile for testing Rust builds on linux
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