zebra/Dockerfile

29 lines
517 B
Docker
Raw Normal View History

FROM rust:stretch as base
RUN apt-get update && \
apt-get install -y --no-install-recommends \
make cmake g++ gcc
RUN mkdir /zebra
WORKDIR /zebra
ENV RUST_BACKTRACE 1
ENV CARGO_HOME /zebra/.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
FROM alpine:latest
COPY --from=base /zebra/target/release/zebrad .
ENV PORT 8233
2020-01-29 14:22:49 -08:00
CMD ["./zebrad", "seed"]