Prerequisites: an install of Docker (If you don’t want an install, Digital Ocean also has a Docker Droplet).
To start a ghci we can pull and run the image tagged as
7.8, which contains alex, happy, cabal and ghc-7.8.3:
quitting the repl (
:q) will also kill the container.
We can base a new project’s Dockerfile off of the
haskell:7.8 base. As it happens, there is an example Snap
project in the
project, in the
If we clone the repo and cd into the example project’s folder we can build the Dockerfile:
and run it:
We can now see a Snap application running on port 8000 of
localhost or our