I am successfully using yesod in my open source security container scanner. Currently, I use multiple services (all running yesod) which is very fast but each docker image is huge compared to other web servers (say python flask, ruby rails, php laravel which are all around 1GB).
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
dhscanner-parsers latest b29ba20efc6f 2 days ago 5.66GB # <--- yesod
dhscanner-codegen latest 2c3c366a36a0 2 days ago 5.64GB # <--- yesod
dhscanner-kbgen latest c63e806cc26b 2 days ago 5.63GB # <--- yesod
dhscanner-frontphp latest b05d4d3d9cfa 2 days ago 648MB # <--- php laravel
dhscanner-frontjs latest 4f49362cf611 2 days ago 1.18GB # <--- js express
My yesod endpoints receive and return json files, they don’t generate *.html
files, and don’t use any database. Is there any way to make the docker image(s) smaller? The Dockerfile
and *.cabal
file are from this GitHub repo