reddsa/Dockerfile

23 lines
412 B
Docker
Raw Normal View History

2019-12-09 14:19:40 -08:00
FROM rust:stretch as base
RUN apt-get update && \
apt-get install -y --no-install-recommends \
make cmake g++ gcc
2021-03-01 06:38:25 -08:00
RUN mkdir /reddsa
WORKDIR /reddsa
2019-12-09 14:19:40 -08:00
ENV RUST_BACKTRACE 1
2021-03-01 06:38:25 -08:00
ENV CARGO_HOME /reddsa/.cargo/
2019-12-09 14:19:40 -08:00
# 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