Skip to content

Instantly share code, notes, and snippets.

@P7h P7h/Dockerfile
Last active Sep 18, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.