forked from kanaka/mal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (39 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:20.04
MAINTAINER Joel Martin <[email protected]>
ENV DEBIAN_FRONTEND=noninteractive
##########################################################
# 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 libreadline-dev libedit-dev
RUN mkdir -p /mal
WORKDIR /mal
##########################################################
# Specific implementation requirements
##########################################################
# fennel
RUN apt-get -y install gcc wget unzip libpcre3-dev
# lua
RUN \
wget http://www.lua.org/ftp/lua-5.4.1.tar.gz && \
tar -zxf lua-5.4.1.tar.gz && \
cd lua-5.4.1 && \
make linux test && \
make install
# luarocks
RUN \
wget https://luarocks.org/releases/luarocks-3.3.1.tar.gz && \
tar zxpf luarocks-3.3.1.tar.gz && \
cd luarocks-3.3.1 && \
./configure && \
make && \
make install
# fennel, lpeg
RUN luarocks install fennel
RUN luarocks install lpeg
# luarocks .cache directory is relative to HOME
ENV HOME /mal