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:
committed by
Arkadiy Paronyan
parent
f47cbe0be6
commit
92f5aa7e10
@@ -1,5 +1,6 @@
|
||||
FROM ubuntu:14.04
|
||||
WORKDIR /build
|
||||
|
||||
# install tools and dependencies
|
||||
RUN apt-get -y update && \
|
||||
apt-get install -y --force-yes --no-install-recommends \
|
||||
@@ -23,16 +24,12 @@ RUN rustup target add armv7-unknown-linux-gnueabihf
|
||||
# show backtraces
|
||||
ENV RUST_BACKTRACE 1
|
||||
|
||||
|
||||
# show tools
|
||||
RUN rustc -vV && \
|
||||
cargo -V
|
||||
RUN rustc -vV && cargo -V
|
||||
|
||||
# build parity
|
||||
RUN git clone https://github.com/paritytech/parity && \
|
||||
cd parity && \
|
||||
git checkout beta && \
|
||||
git pull && \
|
||||
ADD . /build/parity
|
||||
RUN cd parity && \
|
||||
mkdir -p .cargo && \
|
||||
echo '[target.armv7-unknown-linux-gnueabihf]\n\
|
||||
linker = "arm-linux-gnueabihf-gcc"\n'\
|
||||
|
||||
Reference in New Issue
Block a user