This Git repository contains a Dockerfile that allows you to develop Pandoc without littering your base OS with Haskell.
First, build the Docker image by running make build
. This is going to build a
Docker image with GHC, Cabal, Stack, and Pandoc using ghcup. This should
take less than 5 minutes. You can list the installed image and its size by
running docker images
.
Next, run docker run -it witiko/pandoc-devenv
. This is going to create a
Docker container and open bash in a directory containing the source code of
the current Pandoc. Try running make quick
to build and unit-test Pandoc;
this should take about 15 minutes.
To uninstall the Docker image and container, first run docker ps -a
to list
your Docker container. Use the command docker rm CONTAINER_NAME
to remove
your containers. When there are no Docker containers for the Docker image, you
can remove the Docker image by running docker rmi witiko/pandoc-devenv
.