initial commit

This commit is contained in:
Colin Yates 2018-08-06 17:40:06 +01:00
commit 616d834838
10 changed files with 99 additions and 0 deletions

25
Dockerfile Normal file
View file

@ -0,0 +1,25 @@
FROM debian
ENV PATH=$PATH:/opt/Nim/bin:/root/.nimble/bin
RUN apt update && \
apt -y install libc-dev gcc curl git perl mingw-w64 \
&& \
rm -rf /var/cache/apt/;
RUN mkdir -p /opt && cd /opt && \
curl -LO https://github.com/nim-lang/Nim/archive/v0.18.0.tar.gz && \
tar zxf v0.18.0.tar.gz && rm -f v0.18.0.tar.gz && \
mv Nim-0.18.0 Nim && cd Nim && \
git clone --depth 1 git://github.com/nim-lang/csources && \
cd csources && sh build.sh && \
cd .. && ./bin/nim c koch && ./koch boot -d:release && \
nim e install_nimble.nims && \
rm -rf /opt/Nim/tests;
ADD scripts /scripts
ADD project /src
WORKDIR /src
CMD /scripts/build.sh