Add Dockerfile for gcloud build

This commit is contained in:
Deirdre Connolly 2019-12-09 17:19:40 -05:00 committed by Deirdre Connolly
parent b3b6894fde
commit cf715f5221
1 changed files with 22 additions and 0 deletions

Dockerfile Normal file
View File

@ -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 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