-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
109 lines (102 loc) · 3.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
## Dockerfile for a haskell environment, with lts stackage
FROM haskell:7.8
MAINTAINER Ondra Pelech <ondra.pelech@gmail.com>
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y freeglut3-dev \
libblas-dev \
libbz2-dev \
libcairo2-dev \
libglib2.0-dev \
libgsl0-dev \
libicu-dev \
liblapack-dev \
libmysqlclient-dev \
libncurses5-dev \
libpango1.0-dev \
libpcre3-dev \
libpq-dev \
libtinfo-dev \
libxrandr-dev \
libxss-dev \
libzmq3-dev \
llvm \
llvm-dev \
nettle-dev \
opt \
pkg-config \
libcurl4-openssl-dev \
libfreenect-dev \
libgd-dev \
libgtk2.0-dev \
libgtk-3-dev \
liblzma-dev \
libnotify-dev
RUN cabal info
RUN curl -sf -L "https://www.stackage.org/lts/1/cabal.config?global=true" >> /root/.cabal/config
RUN cabal update
RUN which ghc && \
ghc --version && \
which cabal && \
cabal --version && \
ghc-pkg list
RUN cabal install cabal-install
RUN cabal install alex happy
RUN cabal install cpphs gtk2hs-buildtools
RUN cabal install array \
async \
attoparsec \
base \
bytestring \
case-insensitive \
containers \
deepseq \
directory \
extensible-exceptions \
fgl \
filepath \
GLURaw \
GLUT \
hashable \
haskell2010 \
haskell98 \
hpc \
hscolour \
html \
HTTP \
HUnit \
mtl \
network \
old-locale \
old-time \
OpenGL \
OpenGLRaw \
parallel \
parsec \
pretty \
primitive \
process \
QuickCheck \
random \
regex-base \
regex-compat \
regex-posix \
split \
stm \
syb \
template-haskell \
text \
time \
transformers \
unix \
unordered-containers \
vector \
xhtml \
zlib
RUN which ghc && \
ghc --version && \
which cabal && \
cabal --version && \
ghc-pkg list
## run ghci by default unless a command is specified
CMD ["ghci"]