Add Dockerfile for gcloud build

pull/19/head
Deirdre Connolly 4 years ago committed by Deirdre Connolly
parent b3b6894fde
commit cf715f5221
  1. 22
      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
Loading…
Cancel
Save