I played a bit with the two and came up with my own version, suitable to produce images able to build and host simple Haskell server code. This is no production setup, but will open the door to more fine-tuned experimentation.
Let's jump right into it!
- First of all, here is the source code of a minimal Haskell Warp server I'm going to be hosting: haskell-warp.
Secondly, the dockerfile (also contained in the github repository from the previous point):
Now it's time to build my image (this will take a good while):
Next, time to create a running container from the image:
- Finally, time to test the code we've just deployed: