openethereum/docker/ubuntu/Dockerfile

34 lines
708 B
Docker
Raw Normal View History

2016-02-01 12:35:52 +01:00
FROM ubuntu:14.04
2016-06-29 14:46:29 +02:00
WORKDIR /build
2016-02-01 12:35:52 +01:00
# install tools and dependencies
RUN apt-get update && \
2016-06-29 14:46:29 +02:00
apt-get install -y \
g++ \
curl \
git \
file \
binutils
2016-02-01 12:35:52 +01:00
2016-06-29 14:46:29 +02:00
# install rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
2016-02-01 12:35:52 +01:00
2016-06-29 14:46:29 +02:00
# rustup directory
ENV PATH /root/.cargo/bin:$PATH
2016-02-01 12:35:52 +01:00
# show backtraces
ENV RUST_BACKTRACE 1
2016-06-29 14:46:29 +02:00
# show tools
RUN rustc -vV && \
cargo -V && \
gcc -v &&\
g++ -v
2016-02-01 12:35:52 +01:00
# build parity
RUN git clone https://github.com/ethcore/parity && \
2016-06-29 14:46:29 +02:00
cd parity && \
cargo build --release --verbose && \
ls /build/parity/target/release/parity && \
strip /build/parity/target/release/parity
RUN file /build/parity/target/release/parity