Skip to content

Instantly share code, notes, and snippets.

@messense
Created February 23, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save messense/2f70c4bc6277de4708ef632e97e3c48a to your computer and use it in GitHub Desktop.
Save messense/2f70c4bc6277de4708ef632e97e3c48a to your computer and use it in GitHub Desktop.
Build a Rust & Valgrind Docker image for testing FFI bindings
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y curl valgrind build-essential clang
# Install Rust
ENV RUST_VERSION=stable
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$RUST_VERSION
# Install cargo-valgrind
RUN /bin/bash -c "source /root/.cargo/env && cargo install cargo-valgrind"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment