Docker image with Haskell compiler [GHC] focused on minimal possible size on disk (~955MB)
6.2K
This image is based on Alpine Linux image, which is only a 5MB image, and contains Haskell compiler (ghc package).
Download size of this image is:
$ echo -e 'module Main where\nmain = putStrLn "Hello, World!"' > qq.hs
$ docker run --rm -v "$(pwd):/tmp" frolvlad/alpine-ghc ghc -O2 -static -optl-static /tmp/qq.hs -o /tmp/qq
Once you have run these commands you will have qq executable in your current directory and if you
execute it, you will get printed 'Hello, World!'
docker pull frolvlad/alpine-ghc:latest