mirror of
https://github.com/kanaka/mal.git
synced 2024-10-27 14:52:16 +03:00
34 lines
967 B
Docker
34 lines
967 B
Docker
|
FROM ubuntu:18.04
|
||
|
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
|
||
|
##########################################################
|
||
|
|
||
|
RUN apt-get -y install g++
|
||
|
RUN apt-get -y install git
|
||
|
|
||
|
COPY wren-add-gettimeofday.patch /tmp/
|
||
|
RUN cd /tmp && git clone --depth=1 https://github.com/wren-lang/wren.git \
|
||
|
&& cd wren \
|
||
|
&& patch -p1 < /tmp/wren-add-gettimeofday.patch \
|
||
|
&& make \
|
||
|
&& cp ./wren /usr/local/bin/ \
|
||
|
&& cd /tmp && rm -rf wren
|