Last active
September 18, 2016 11:55
-
-
Save P7h/bc98290616cc7401a850ed7c6f35301f to your computer and use it in GitHub Desktop.
Docker Image for GHC v8.0.1 and Cabal v1.24
This file contains 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
FROM ubuntu | |
MAINTAINER Prashanth Babu <Prashanth.Babu@gmail.com> | |
RUN apt-get update && \ | |
apt-get install -yqq software-properties-common screen vim && \ | |
add-apt-repository -y ppa:hvr/ghc && \ | |
apt-get update && \ | |
apt-get install -yqq cabal-install-1.24 ghc-8.0.1 && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
# We will be running as `root` user. | |
USER root | |
# Working directory is set to the home folder of `root` user. | |
WORKDIR /root | |
# Configure env variables for GHC, Cabal and Path. | |
ENV HASKELL_HOME /opt/ghc/8.0.1/ | |
ENV CABAL_HOME /opt/cabal/1.24/ | |
ENV PATH $HASKELL_HOME/bin:$CABAL_HOME/bin:$PATH | |
CMD ["/bin/bash"] | |
# docker build -t haskell . | |
# docker run -it --name haskell haskell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment