-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
31 lines (27 loc) · 844 Bytes
/
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
## Dockerfile for a haskell environment in CentOS 6
## Inspired by https://github.com/dimchansky/docker-centos6-haskell/blob/master/7.8.4/Dockerfile
FROM centos:7
MAINTAINER Arnaud Bailly <arnaud@igitur.io>
## Install dependencies
RUN yum install -y curl\
gcc \
gmp-devel \
pcre-devel \
perl \
tar \
which \
xz \
zlib-devel \
&& yum clean all --releasever=6 \
&& ln -s /lib64/libtinfo.so.5 /lib64/libtinfo.so
ENV GHC_VERSION=7.10.3 \
CABAL_VERSION=1.22.2.0 \
ALEX_VERSION=3.1.7 \
HAPPY_VERSION=1.19.5 \
C2HS_VERSION=0.25.1
RUN yum install -y make
## Install stack
RUN mkdir -p /opt/stack/bin
RUN curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C /opt/stack/bin '*/stack'
ENV PATH /opt/stack/bin/:$PATH
RUN stack setup $GHC_VERSION