2018-08-24 05:55:54 +02:00
|
|
|
FROM centos:latest
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
2020-03-25 17:16:51 +01:00
|
|
|
ADD . /build/openethereum
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
RUN yum -y update && \
|
|
|
|
yum install -y systemd-devel git make gcc-c++ gcc file binutils && \
|
|
|
|
curl -L "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz" -o cmake.tar.gz && \
|
|
|
|
tar -xzf cmake.tar.gz && \
|
|
|
|
cp -r cmake-3.12.0-Linux-x86_64/* /usr/ && \
|
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
|
|
|
|
PATH=/root/.cargo/bin:$PATH && \
|
|
|
|
RUST_BACKTRACE=1 && \
|
|
|
|
rustc -vV && \
|
|
|
|
cargo -V && \
|
|
|
|
gcc -v && \
|
|
|
|
g++ -v && \
|
|
|
|
cmake --version && \
|
2020-03-25 17:16:51 +01:00
|
|
|
cd openethereum && \
|
2018-08-24 05:55:54 +02:00
|
|
|
cargo build --verbose --release --features final && \
|
2020-03-25 17:16:51 +01:00
|
|
|
strip /build/openethereum/target/release/openethereum && \
|
|
|
|
file /build/openethereum/target/release/openethereum
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
|