use build_all.sh to build nim and wipe new cache location (fixes #2)

This commit is contained in:
Jacek Sieka 2018-08-21 13:57:49 -06:00
parent 708e189256
commit 59438498f2
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 2 additions and 10 deletions

View File

@ -3,20 +3,12 @@ MAINTAINER Yuriy Glukhov <iurii@status.im>
ENV PATH $PATH:/nim/bin:/root/.nimble/bin
RUN git clone https://github.com/status-im/nim.git \
&& cd nim \
&& git config --global user.email "you@example.com" \
&& git config --global user.name "Your Name" \
&& git clone --depth 1 https://github.com/nim-lang/csources.git \
&& cd csources \
&& sh build.sh \
&& cd .. \
&& nim c koch \
&& ./koch boot -d:release \
&& ./koch nimble \
&& sh build_all.sh \
&& echo echo nim version: $(git rev-parse HEAD) > /onStart.d/005-nim-version.sh \
&& chmod +x /onStart.d/005-nim-version.sh \
&& cd ./dist/nimble \
&& echo echo nimble version: $(git rev-parse HEAD) > /onStart.d/006-nimble-version.sh \
&& chmod +x /onStart.d/006-nimble-version.sh \
&& cd ../.. \
&& rm -rf ./nimcache ./compiler/nimcache ./csources ./dist ./.git \
&& rm -rf $HOME/.cache/nim ./csources ./dist ./.git \
&& cd ..