23 lines
412 B
Docker
23 lines
412 B
Docker
FROM rust:stretch as base
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
make cmake g++ gcc
|
|
|
|
RUN mkdir /reddsa
|
|
WORKDIR /reddsa
|
|
|
|
ENV RUST_BACKTRACE 1
|
|
ENV CARGO_HOME /reddsa/.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
|