openethereum/docker/ubuntu/Dockerfile

44 lines
847 B
Docker
Raw Permalink Normal View History

2016-02-01 12:35:52 +01:00
FROM ubuntu:14.04
WORKDIR /build
2016-02-01 12:35:52 +01:00
# install tools and dependencies
RUN apt-get update && \
apt-get install -y \
g++ \
build-essential \
2018-07-13 12:09:41 +02:00
cmake \
curl \
git \
file \
2017-03-30 22:16:54 +02:00
binutils \
libssl-dev \
pkg-config \
libudev-dev
2016-02-01 12:35:52 +01:00
2016-06-20 11:02:31 +02:00
# install rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
2016-02-01 12:35:52 +01:00
2016-06-20 11:02:31 +02:00
# rustup directory
ENV PATH /root/.cargo/bin:$PATH
2016-02-01 12:35:52 +01:00
# show backtraces
ENV RUST_BACKTRACE 1
# show tools
RUN rustc -vV && \
cargo -V && \
gcc -v &&\
g++ -v
2016-02-01 12:35:52 +01:00
# build parity
ADD . /build/parity
RUN cd parity && \
cargo build --release --verbose && \
2016-06-30 22:07:22 +02:00
ls /build/parity/target/release/parity && \
strip /build/parity/target/release/parity
RUN file /build/parity/target/release/parity
EXPOSE 8080 8545 8180
ENTRYPOINT ["/build/parity/target/release/parity"]