Skip to content

Instantly share code, notes, and snippets.

@P7h P7h/Dockerfile
Last active Sep 18, 2016

What would you like to do?
Docker Image for GHC v8.0.1 and Cabal v1.24
FROM ubuntu
MAINTAINER Prashanth Babu <>
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.
# Configure env variables for GHC, Cabal and Path.
ENV HASKELL_HOME /opt/ghc/8.0.1/
ENV CABAL_HOME /opt/cabal/1.24/
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.