1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

Dockerfile: make Nim build one layer.

Save couple hundred MB or so.
This commit is contained in:
Joel Martin 2015-03-18 14:51:32 -05:00
parent b3c30da9fc
commit 0afb3ee867

View File

@ -82,13 +82,13 @@ RUN luarocks install linenoise
RUN npm install -g minimal-lisp
# Nim
RUN git clone -b devel git://github.com/Araq/Nim.git /tmp/Nim
RUN cd /tmp/Nim && git clone -b devel --depth 1 git://github.com/nim-lang/csources
RUN cd /tmp/Nim/csources && sh build.sh
RUN cd /tmp/Nim && bin/nim c koch
RUN cd /tmp/Nim && ./koch boot -d:release
RUN cd /tmp/Nim && ./koch install /usr/local/bin
RUN rm -r /tmp/Nim
RUN git clone -b devel git://github.com/Araq/Nim.git /tmp/Nim \
&& cd /tmp/Nim && git clone -b devel --depth 1 git://github.com/nim-lang/csources \
&& cd /tmp/Nim/csources && sh build.sh \
&& cd /tmp/Nim && bin/nim c koch \
&& ./koch boot -d:release \
&& ./koch install /usr/local/bin \
&& rm -r /tmp/Nim
# OCaml
RUN apt-get -y install ocaml-batteries-included