Dockerfile creation speed-up by not running go tests, added a workaround

so that docker's cache is invalidated whenever th git repo is updated.
This commit is contained in:
sveneh 2015-02-09 16:27:49 +01:00
parent e40c1c62ce
commit 70e2df3904

View File

@ -21,7 +21,7 @@ RUN apt-get install -y qt54quickcontrols qt54webengine
## Build and install latest Go
RUN git clone https://go.googlesource.com/go golang
RUN cd golang && git checkout go1.4.1
RUN cd golang/src && ./all.bash && go version
RUN cd golang/src && ./make.bash && go version
## Fetch and install QML
RUN go get -u -v -d github.com/obscuren/qml
@ -29,6 +29,9 @@ WORKDIR $GOPATH/src/github.com/obscuren/qml
RUN git checkout v1
RUN go install -v
# this is a workaround, to make sure that docker's cache is invalidated whenever the git repo changes
ADD https://api.github.com/repos/ethereum/go-ethereum/git/refs/heads/develop file_does_not_exist
## Fetch and install go-ethereum
RUN go get -u -v -d github.com/ethereum/go-ethereum/...
WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum