DISABLE FDs (REMOVE ME).
[jackhill/mal.git] / haskell / Dockerfile
1 FROM ubuntu:wily
2 MAINTAINER Joel Martin <github@martintribe.org>
3
4 ##########################################################
5 # General requirements for testing or common across many
6 # implementations
7 ##########################################################
8
9 RUN apt-get -y update
10
11 # Required for running tests
12 RUN apt-get -y install make python
13
14 # Some typical implementation and test requirements
15 RUN apt-get -y install curl libreadline-dev libedit-dev
16
17 RUN mkdir -p /mal
18 WORKDIR /mal
19
20 ##########################################################
21 # Specific implementation requirements
22 ##########################################################
23
24 # Haskell
25 RUN apt-get install -y software-properties-common && \
26 add-apt-repository -y ppa:hvr/ghc && \
27 apt-get update && \
28 apt-get install -y cabal-install-1.22 ghc-7.10.3
29
30 ENV PATH /opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:$PATH
31
32 RUN cabal update && cabal install --global readline
33 # TODO: editline when compile bug fixed
34 RUN cabal install --global parsec
35