Skip to content

Instantly share code, notes, and snippets.

@P7h
Last active September 18, 2016 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save P7h/bc98290616cc7401a850ed7c6f35301f to your computer and use it in GitHub Desktop.
Save P7h/bc98290616cc7401a850ed7c6f35301f to your computer and use it in GitHub Desktop.
Docker Image for GHC v8.0.1 and Cabal v1.24
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