Created
June 30, 2014 23:14
-
-
Save necrobious/313e83a1932da1d63d41 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 + GHC 7.8.2 + cabal-install 1.20.0.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build with | |
# docker build -t 'necrobious/haskell-ghc-7.8-64' . | |
FROM ubuntu:14.04 | |
MAINTAINER [email protected] | |
ENV DEBIAN_FRONTEND noninteractive | |
####### Install Dependencies ################################################### | |
RUN apt-get -y update | |
RUN apt-get -y install build-essential curl zlib1g-dev libgmp3-dev libedit2 | |
####### GHC 7.8.2 offical ###################################################### | |
RUN curl -O http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2 | |
RUN tar xvfj ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2 | |
RUN cd ghc-7.8.2 && ./configure | |
RUN cd ghc-7.8.2 && make install | |
RUN ghc --version | |
######### cabal-install ######################################################## | |
RUN curl -O http://hackage.haskell.org/package/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz | |
RUN tar xvfz cabal-install-1.20.0.3.tar.gz | |
RUN (cd cabal-install-1.20.0.3 && ./bootstrap.sh) | |
ENV PATH /.cabal/bin:$PATH | |
######### Clean up ############################################################# | |
RUN rm -fr ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2 ghc-7.8.2 | |
RUN rm -fr cabal-install-1.20.0.3* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment