improved dockerfile builds (#5659)

* docker builds current branch instead of cloning the repo

* moved ADD command right before RUN cd parity in Dockerfiles

* update docker/README.md

* removed --no-cache from docker/README.md
This commit is contained in:
Marek Kotewicz
2017-05-23 12:25:41 +02:00
committed by Arkadiy Paronyan
parent f47cbe0be6
commit 92f5aa7e10
11 changed files with 48 additions and 190 deletions

View File

@@ -1,5 +1,6 @@
FROM ubuntu:14.04
WORKDIR /build
# install tools and dependencies
RUN apt-get update && \
apt-get install -y \
@@ -29,10 +30,8 @@ gcc -v &&\
g++ -v
# build parity
RUN git clone https://github.com/paritytech/parity && \
cd parity && \
git checkout beta && \
git pull && \
ADD . /build/parity
RUN cd parity && \
cargo build --release --verbose && \
ls /build/parity/target/release/parity && \
strip /build/parity/target/release/parity