Merge pull request #420 from asarhaddon/load-file-once
[jackhill/mal.git] / fantom / Dockerfile
CommitLineData
92708e34
DM
1FROM ubuntu:bionic
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# Java and Unzip
25RUN apt-get -y install openjdk-8-jdk unzip
26
27# Fantom and JLine
28RUN cd /tmp && curl -sfLO https://bitbucket.org/fantom/fan-1.0/downloads/fantom-1.0.70.zip \
29 && unzip -q fantom-1.0.70.zip \
30 && rm fantom-1.0.70.zip \
31 && mv fantom-1.0.70 /opt/fantom \
32 && cd /opt/fantom \
33 && bash adm/unixsetup \
34 && curl -sfL -o /opt/fantom/lib/java/jline.jar https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.jar
35
36ENV PATH /opt/fantom/bin:$PATH
37ENV HOME /mal