mirror of
https://github.com/kanaka/mal.git
synced 2024-11-11 00:52:44 +03:00
36 lines
1021 B
Docker
36 lines
1021 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 https://nim-lang.org/download/nim-0.17.2.tar.xz \
|
|
&& tar xvJf /tmp/nim-0.17.2.tar.xz && cd nim-0.17.2 \
|
|
&& make && sh install.sh /usr/local/bin \
|
|
&& cp bin/nim /usr/local/bin/ \
|
|
&& rm -r /tmp/nim-0.17.2
|
|
|
|
ENV HOME /mal
|