2016-02-01 12:35:52 +01:00
|
|
|
FROM ubuntu:14.04
|
2016-06-24 20:57:29 +02:00
|
|
|
WORKDIR /build
|
2016-02-01 12:35:52 +01:00
|
|
|
# install tools and dependencies
|
2017-01-19 22:44:22 +01:00
|
|
|
RUN apt-get -y update && \
|
|
|
|
apt-get install -y --force-yes --no-install-recommends g++ gcc libc6 libc6-dev \
|
|
|
|
python binutils curl git make file ca-certificates zip dpkg-dev rhash openssl build-essential pkg-config libssl-dev
|
|
|
|
|
|
|
|
# install AWS CLI
|
|
|
|
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
|
|
|
|
python get-pip.py && \
|
|
|
|
pip install awscli
|
|
|
|
|
|
|
|
# install nodejs
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
|
|
|
apt-get install -y nodejs && \
|
|
|
|
apt-get clean
|
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
|
|
|
|
|
2016-06-24 20:57: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-24 20:57:29 +02:00
|
|
|
cd parity && \
|
2016-06-30 22:29:45 +02:00
|
|
|
git checkout beta && \
|
2016-06-30 22:07:22 +02:00
|
|
|
git pull && \
|
2017-01-19 22:44:22 +01:00
|
|
|
cargo build --features final --release --verbose && \
|
2016-06-30 22:07:22 +02:00
|
|
|
ls /build/parity/target/release/parity && \
|
2016-06-24 20:57:29 +02:00
|
|
|
strip /build/parity/target/release/parity
|
2016-08-12 09:18:42 +02:00
|
|
|
|
|
|
|
RUN file /build/parity/target/release/parity
|
|
|
|
|
|
|
|
EXPOSE 8080 8545 8180
|
2016-07-24 17:40:38 +02:00
|
|
|
ENTRYPOINT ["/build/parity/target/release/parity"]
|