From cf715f5221f9385e161f32eeaf9b420a6c06430e Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Mon, 9 Dec 2019 17:19:40 -0500 Subject: [PATCH] Add Dockerfile for gcloud build --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7c2ed31 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM rust:stretch as base + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + make cmake g++ gcc + +RUN mkdir /redjubjub +WORKDIR /redjubjub + +ENV RUST_BACKTRACE 1 +ENV CARGO_HOME /redjubjub/.cargo/ + +# Copy local code to the container image. +# Assumes that we are in the git repo. + +COPY . . + +RUN cargo fetch --verbose + +COPY . . + +RUN rustc -V; cargo -V; rustup -V; cargo test --all && cargo build --release