mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
36 lines
1020 B
Docker
36 lines
1020 B
Docker
FROM ubuntu:vivid
|
|
MAINTAINER Joel Martin <github@martintribe.org>
|
|
|
|
##########################################################
|
|
# General requirements for testing or common across many
|
|
# implementations
|
|
##########################################################
|
|
|
|
RUN apt-get -y update
|
|
|
|
# Required for running tests
|
|
RUN apt-get -y install make python
|
|
|
|
# Some typical implementation and test requirements
|
|
RUN apt-get -y install curl libreadline-dev libedit-dev
|
|
|
|
RUN mkdir -p /mal
|
|
WORKDIR /mal
|
|
|
|
##########################################################
|
|
# Specific implementation requirements
|
|
##########################################################
|
|
|
|
# Install g++ for any C/C++ based implementations
|
|
RUN apt-get -y install g++
|
|
|
|
# Nim
|
|
RUN apt-get -y install xz-utils
|
|
RUN cd /tmp && curl -O http://nim-lang.org/download/nim-0.12.0.tar.xz \
|
|
&& tar xvJf /tmp/nim-0.12.0.tar.xz && cd nim-0.12.0 \
|
|
&& make && sh install.sh /usr/local/bin \
|
|
&& cp bin/nim /usr/local/bin/ \
|
|
&& rm -r /tmp/nim-0.12.0
|
|
|
|
ENV HOME /mal
|