openethereum/scripts/docker/centos/Dockerfile.build
2020-09-22 14:53:52 +02:00

26 lines
753 B
Docker

FROM centos:latest
WORKDIR /build
ADD . /build/openethereum
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 && \
cd openethereum && \
cargo build --verbose --release --features final && \
strip /build/openethereum/target/release/openethereum && \
file /build/openethereum/target/release/openethereum