nim: update Dockerfile to use version 0.12
[jackhill/mal.git] / nim / Dockerfile
CommitLineData
9b63e9c3
JM
1FROM ubuntu:vivid
2MAINTAINER Joel Martin <github@martintribe.org>
3
4##########################################################
5# General requirements for testing or common across many
6# implementations
7##########################################################
8
9RUN apt-get -y update
10
11# Required for running tests
12RUN apt-get -y install make python
13
14# Some typical implementation and test requirements
15RUN apt-get -y install curl libreadline-dev libedit-dev
16
17RUN mkdir -p /mal
18WORKDIR /mal
19
20##########################################################
21# Specific implementation requirements
22##########################################################
23
24# Install g++ for any C/C++ based implementations
25RUN apt-get -y install g++
26
27# Nim
28RUN apt-get -y install xz-utils
2dd535e7
JM
29RUN cd /tmp && curl -O http://nim-lang.org/download/nim-0.12.0.tar.xz \
30 && tar xvJf /tmp/nim-0.12.0.tar.xz && cd nim-0.12.0 \
9b63e9c3
JM
31 && make && sh install.sh /usr/local/bin \
32 && cp bin/nim /usr/local/bin/ \
2dd535e7 33 && rm -r /tmp/nim-0.12.0
9b63e9c3
JM
34
35ENV HOME /mal