Skip to content

Instantly share code, notes, and snippets.

@shangaslammi
Created November 27, 2013 08:19
Show Gist options
  • Save shangaslammi/7672315 to your computer and use it in GitHub Desktop.
Save shangaslammi/7672315 to your computer and use it in GitHub Desktop.
centos6 Haskell container with GHC 7.6
FROM centos:6.4
# Install wget for fetching Haskell dependencies
RUN yum install -y wget
# Install dependencies for GHC and core Haskell libraries
RUN yum install -y libbsd-devel gmp-devel gmp zlib-devel
# Install tools needed for installing GHC and Cabal-install
RUN yum install -y make perl gcc
RUN yum install -y which
# Install the GHC compiler
RUN cd /tmp; wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-x86_64-unknown-linux.tar.bz2
RUN cd /tmp; tar xvjf ghc-7.6.3-x86_64-unknown-linux.tar.bz2
RUN cd /tmp/ghc-7.6.3 && ./configure && make install
# Install the Cabal build manager
RUN cd /tmp && wget http://www.haskell.org/cabal/release/cabal-install-1.18.0.2/cabal-install-1.18.0.2.tar.gz
RUN cd /tmp && tar xzvf cabal-install-1.18.0.2.tar.gz
RUN cd /tmp/cabal-install-1.18.0.2 && sh bootstrap.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment